From 47e320e96fe9076d0d38bed2d510ca2ea0c6173d Mon Sep 17 00:00:00 2001 From: Hundrec Date: Mon, 27 Jan 2025 11:37:27 -0700 Subject: [PATCH] [GITHUB] Add `status: pending triage` to all PRs (#4035) * Add `status: pending triage` to all PRs * Update label-pull-request.yml * now size and pr labels can be updated every commit! * remove this * move the pending triage thing to a new workflow * Rename label-pr-on-create.yml to label-pull-request-on-create.yml * fix the identation on this * almost forgot to remove this --------- Co-authored-by: Abnormal <86753001+AbnormalPoof@users.noreply.github.com> --- .../label-pull-request-on-create.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/label-pull-request-on-create.yml diff --git a/.github/workflows/label-pull-request-on-create.yml b/.github/workflows/label-pull-request-on-create.yml new file mode 100644 index 0000000000..94620657d4 --- /dev/null +++ b/.github/workflows/label-pull-request-on-create.yml @@ -0,0 +1,19 @@ +name: "Pull Request Labeler 2 (Runs on PR creation)" +on: + pull_request_target: + types: + - opened + +jobs: + # Apply `status: pending triage` to newly created pull requests + apply-pending-triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Apply "status pending triage" to new pull requests + uses: actions-ecosystem/action-add-labels@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + labels: "status: pending triage"