Skip to content

Commit c1ff480

Browse files
authored
chore: Set default priority as p0 to new PRs
1 parent 303d89f commit c1ff480

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Add Default P0 to New PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
add-p0-label:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- name: Add P0 label
14+
uses: actions/github-script@v7
15+
with:
16+
script: |
17+
github.rest.issues.addLabels({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
issue_number: context.issue.number,
21+
labels: [priority: p0]
22+
})

0 commit comments

Comments
 (0)