Skip to content

Commit fe221e1

Browse files
authored
Merge pull request #24 from github-samples/actions-start
Actions start
2 parents 58e17b4 + 78d7399 commit fe221e1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
13+
steps:
14+
- name: Add triage label
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
ISSUE_NUMBER: ${{ github.event.issue.number }}
18+
LABEL: "triage"
19+
run: gh issue edit "$ISSUE_NUMBER" --add-label "$LABEL"
20+

0 commit comments

Comments
 (0)