10000 Create issue-labeler.yml · StackTipsLab/tutorials@0bdfba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bdfba2

Browse files
authored
Create issue-labeler.yml
1 parent c26b3c9 commit 0bdfba2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/issue-labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Issue Labeler
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
labelIssue:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Add label
12+
uses: actions/github-script@v6
13+
with:
14+
github-token: ${{secrets.STACKTIPS_CONTENT_ACTION_TOKEN}}
15+
script: |
16+
github.rest.issues.addLabels({
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
issue_number: context.issue.number,
20+
labels: ['good first issue', 'triaged']
21+
})

0 commit comments

Comments
 (0)
0