Skip to content

Commit c64eac0

Browse files
authored
feat: add GitHub Actions workflow to label "triage-needed" on open (#807)
1 parent 8061d74 commit c64eac0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/issue-labels.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Issue labels
2+
3+
on:
4+
issues:
5+
types: [opened, reopened]
6+
7+
env:
8+
TRIAGERS: '["karthiknadig","eleanorjboyd"]'
9+
10+
permissions:
11+
issues: write
12+
13+
jobs:
14+
# From https://github.com/marketplace/actions/github-script#apply-a-label-to-an-issue.
15+
add-classify-label:
16+
name: "Add 'triage-needed' and remove assignees"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Actions
20+
uses: actions/checkout@v4
21+
with:
22+
repository: 'microsoft/vscode-github-triage-actions'
23+
ref: stable
24+
path: ./actions
25+
26+
- name: Install Actions
27+
run: npm install --production --prefix ./actions
28+
29+
- name: "Add 'triage-needed' and remove assignees"
30+
uses: ./actions/python-issue-labels
31+
with:
32+
triagers: ${{ env.TRIAGERS }}
33+
token: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)