Retain spaces within label (#95)

This commit is contained in:
Pavish Kumar
2021-10-08 17:47:46 +05:30
committed by GitHub
parent b279a61c36
commit 9e9a90b41e
3 changed files with 16 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ export function getIssueOption(body: string): IssueOption {
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').split(',').map(label => label.trim())
}
return {