use GitHub context to branch processing (#22)

This commit is contained in:
Naoki Oketani
2019-12-13 12:18:28 +09:00
committed by GitHub
parent ac19a7500b
commit 3e659c8c99
14 changed files with 3579 additions and 80 deletions

View File

@@ -6,10 +6,16 @@ export function getIssueOption(body: string): IssueOption {
let labels
if (core.getInput('issue_assignees')) {
assignees = core.getInput('issue_assignees').replace(/\s+/g, '').split(',')
assignees = core
.getInput('issue_assignees')
.replace(/\s+/g, '')
.split(',')
}
if (core.getInput('issue_labels')) {
labels = core.getInput('issue_labels').replace(/\s+/g, '').split(',')
labels = core
.getInput('issue_labels')
.replace(/\s+/g, '')
.split(',')
}
return {