Skip to content

Commit 2e7b0e3

Browse files
authored
Switch from 'classify' to 'needs-triage'
1 parent 42b2b10 commit 2e7b0e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/issue-labels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
# From https://github.com/marketplace/actions/github-script#apply-a-label-to-an-issue.
1212
add-classify-label:
13-
name: "Add 'classify'"
13+
name: "Add 'needs-triage'"
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/github-script@v6
@@ -23,17 +23,17 @@ jobs:
2323
issue_number: context.issue.number,
2424
})
2525
const labels = result.data.map((label) => label.name)
26-
const hasNeedsOrTPI = labels.some((label) => (label.startsWith('needs') || label === 'testplan-item'))
26+
const hasNeedsOrTPI = labels.some((label) => (label.startsWith('needs') || label === 'testplan-item' || label.startsWith('iteration-plan')))
2727
2828
if (!hasNeedsOrTPI) {
29-
console.log('This issue is not labeled with a "needs __" label or the "testplan-item" label, add the "classify" label.')
29+
console.log('This issue is not labeled with a "needs __", "iteration-plan", or the "testplan-item" label; add the "needs-triage" label.')
3030
3131
github.rest.issues.addLabels({
3232
owner: context.repo.owner,
3333
repo: context.repo.repo,
3434
issue_number: context.issue.number,
35-
labels: ['classify']
35+
labels: ['needs-triage']
3636
})
3737
} else {
38-
console.log('This issue already has a "needs __" label or the "testplan-item" label, do not add the "classify" label.')
38+
console.log('This issue already has a "needs __", "iteration-plan", or the "testplan-item" label, do not add the "needs-triage" label.')
3939
}

0 commit comments

Comments
 (0)