Skip to content

Commit

Permalink
Add auto apply labeler workflow for PRs (#1161)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
MuhammadTahaNaveed authored Aug 18, 2023
1 parent b4574f5 commit 6ea4f3e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PG11:
- base-branch: 'PG11'

PG12:
- base-branch: 'PG12'

PG13:
- base-branch: 'PG13'

PG14:
- base-branch: 'PG14'

PG15:
- base-branch: 'PG15'

master:
- base-branch: 'master'
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

0 comments on commit 6ea4f3e

Please sign in to comment.