Skip to content

Commit 8f9b64e

Browse files
committed
Add auto-labelling workflow
1 parent 32d3dc0 commit 8f9b64e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/on-issue-created.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ env:
88
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
GH_REPO: ${{ github.repository }}
1010
NUMBER: ${{ github.event.issue.number }}
11+
BODY: ${{ github.event.issue.body }}
1112

1213
jobs:
1314
label-chromium:
1415
runs-on: ubuntu-latest
15-
if: contains(github.event.comment.body, 'browser: Chrome') || contains(github.event.comment.body, 'browser: Edge')
16+
if: contains(env.BODY, 'browser: Chrome') || contains(env.BODY, 'browser: Edge')
1617
permissions: write
1718
steps:
1819
- run: gh issue edit "$NUMBER" --add-label "Chromium"
1920
label-firefox:
2021
runs-on: ubuntu-latest
21-
if: contains(github.event.comment.body, 'browser: Firefox')
22+
if: contains(env.BODY, 'browser: Firefox')
2223
permissions: write
2324
steps:
2425
- run: gh issue edit "$NUMBER" --add-label "Firefox"
2526
label-safari:
2627
runs-on: ubuntu-latest
27-
if: contains(github.event.comment.body, 'browser: Safari')
28+
if: contains(env.BODY, 'browser: Safari')
2829
permissions: write
2930
steps:
3031
- run: gh issue edit "$NUMBER" --add-label "Safari"

0 commit comments

Comments
 (0)