Skip to content

Commit a3ed645

Browse files
authored
Merge pull request #30 from github-samples/actions-start
Add new labeler workflow
2 parents e044144 + 068824f commit a3ed645

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Label New Issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
label-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
contents: read
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
- name: Add triage label
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
ISSUE_NUMBER: ${{ github.event.issue.number }}
21+
LABEL: "triage"
22+
run: gh issue edit "$ISSUE_NUMBER" --add-label "$LABEL"
23+

0 commit comments

Comments
 (0)