From 73c615c5314e028ba234b8a14da367c04b06d907 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Thu, 14 Aug 2025 03:07:31 +0530 Subject: [PATCH 1/2] 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 00000000..93a5b4b5 --- /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 47b03888e8cabbe369331a2a6a2bfce897c50103 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Thu, 14 Aug 2025 03:08:04 +0530 Subject: [PATCH 2/2] 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 670299df..6d78e84b 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -17,6 +17,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"