From 010c5cd55482ae03df795f86da50344f8ff198b4 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Thu, 14 Aug 2025 03:14:24 +0530 Subject: [PATCH 1/3] chore: Set default priority as p0 to all PRs and Issues This PRs adds a new github actions workflow to add default priority of P0 to new PRs and Issues --- .github/workflows/labeler.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..93a5b4b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,25 @@ +name: Add Default P0 Label to Issues and PRs + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + add-p0-label: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: Add P0 label + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['priority: p0'] + }) From 5b70329e61ee021c410bfdf86987fb00b90baa96 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Thu, 14 Aug 2025 03:14:55 +0530 Subject: [PATCH 2/3] Update header-checker-lint.yml --- .github/header-checker-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index 18b54e9..195ef98 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -35,6 +35,7 @@ ignoreFiles: - ".github/header-checker-lint.yml" - ".github/sync-repo-settings.yaml" - ".github/workflows/docs.yml" + - ".github/workflows/labeler.yml" - ".kokoro/**" - "**/requirements.txt" - "**/requirements*.txt" From c8c5ab04d2c5fe45a00d2e8a62b051981d4e93bc Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Thu, 14 Aug 2025 03:15:33 +0530 Subject: [PATCH 3/3] Update header-checker-lint.yml --- .github/header-checker-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index 195ef98..fd88de4 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -35,7 +35,7 @@ ignoreFiles: - ".github/header-checker-lint.yml" - ".github/sync-repo-settings.yaml" - ".github/workflows/docs.yml" - - ".github/workflows/labeler.yml" + - ".github/workflows/labeler.yml" - ".kokoro/**" - "**/requirements.txt" - "**/requirements*.txt"