From fb8f0744dc8146e8db2350a6bf981611788ebb13 Mon Sep 17 00:00:00 2001 From: Muhammad Taha Naveed Date: Tue, 22 Aug 2023 21:15:31 +0500 Subject: [PATCH] Add auto apply labeler workflow for PRs - 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. --- .github/labeler.yml | 17 +++++++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..92ab6db8e --- /dev/null +++ b/.github/labeler.yml @@ -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' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..22c21ebe7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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/labeler@v5.0.0-alpha.1 \ No newline at end of file