Skip to content

Commit 0054763

Browse files
committed
Add auto-labelling workflow
1 parent ed0671a commit 0054763

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: on-issue-created
2+
3+
on:
4+
issues:
5+
types: opened
6+
7+
env:
8+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
GH_REPO: ${{ github.repository }}
10+
NUMBER: ${{ github.event.issue.number }}
11+
12+
jobs:
13+
label-chromium:
14+
runs-on: ubuntu-latest
15+
if: (( contains(github.event.comment.body, 'browser: Chrome') || contains(github.event.comment.body, 'browser: Edge') ))
16+
permissions: write
17+
steps:
18+
- run: gh issue edit "$NUMBER" --add-label "Chromium"
19+
label-firefox:
20+
runs-on: ubuntu-latest
21+
if: (( contains(github.event.comment.body, 'browser: Firefox') ))
22+
permissions: write
23+
steps:
24+
- run: gh issue edit "$NUMBER" --add-label "Firefox"
25+
label-safari:
26+
runs-on: ubuntu-latest
27+
if: (( contains(github.event.comment.body, 'browser: Safari') ))
28+
permissions: write
29+
steps:
30+
- run: gh issue edit "$NUMBER" --add-label "Safari"

0 commit comments

Comments
 (0)