Skip to content

Commit 0bed528

Browse files
Add auto apply labeler workflow for PRs (#1176)
- This workflow will automatically apply labels to PRs based on the branch name. - This will help us to filter out PRs intended for a specific branch e.g PG11, PG12, PG13, PG14, PG15, master and any PR for other ongoing project branches. - Currently it supports only PG11, PG12, PG13, PG14, PG15 and master. We can add more by adding a new entry in the .github/labeler.yml file.
1 parent ccaadc8 commit 0bed528

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/labeler.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
PG11:
2+
- base-branch: 'PG11'
3+
4+
PG12:
5+
- base-branch: 'PG12'
6+
7+
PG13:
8+
- base-branch: 'PG13'
9+
10+
PG14:
11+
- base-branch: 'PG14'
12+
13+
PG15:
14+
- base-branch: 'PG15'
15+
16+
master:
17+
- base-branch: 'master'

.github/workflows/labeler.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/[email protected]

0 commit comments

Comments
 (0)