-
Notifications
You must be signed in to change notification settings - Fork 32
34 lines (30 loc) · 938 Bytes
/
labeler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Labeler CI
# Declare default permissions as read only.
permissions: read-all
on:
pull_request:
jobs:
add-label-to-release:
name: Add label to release
runs-on: ubuntu-latest
if: contains(github.head_ref, 'release-please')
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "puppeteer"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
add-label-to-wpt-bump:
name: Add label to release
runs-on: ubuntu-latest
if: contains(github.head_ref, 'Bump wpt')
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "update-expectations"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}