Skip to content

Commit

Permalink
Update update-status-labels-on-tracking-issues.yml (github#19677)
Browse files Browse the repository at this point in the history
* Update update-status-labels-on-tracking-issues.yml

* Update update-status-labels-on-tracking-issues.yml
  • Loading branch information
chiedo authored Jun 2, 2021
1 parent f1edff8 commit ae22ad4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update-status-labels-on-tracking-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
const repo = context.payload.repository.name
const allStatusLabels = [
'Status: GREEN',
'Status: GREY',
'Status: YELLOW',
'Status: BLACK',
'Status: RED'
'green',
'grey',
'yellow',
'black',
'red'
];
const currentLabels = await github.issues.listLabelsOnIssue({
Expand All @@ -33,7 +33,7 @@ jobs:
const newLabels = currentLabels.data.filter( label => allStatusLabels.includes(label.name) === false)
allStatusLabels.forEach( label => {
if(context.payload.comment.body.includes(label)) {
if(context.payload.comment.body.toLowerCase().includes(`status: ${label}`)) {
newLabels.push(label)
}
});
Expand Down

0 comments on commit ae22ad4

Please sign in to comment.