From 7f197ee06872e7a43d6d75e23102a94328dc51ea Mon Sep 17 00:00:00 2001 From: Bianca Henderson Date: Thu, 18 Dec 2025 16:13:13 -0500 Subject: [PATCH] Merge pull request #172 from hdefazio/add_pr_label Add new workflow to label prs with needs_triage (cherry picked from commit 76dd7446c94c4e044eb97cd290c5ad7e69577415) --- .github/workflows/label-new-prs.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/label-new-prs.yaml diff --git a/.github/workflows/label-new-prs.yaml b/.github/workflows/label-new-prs.yaml new file mode 100644 index 00000000..8db1dd9b --- /dev/null +++ b/.github/workflows/label-new-prs.yaml @@ -0,0 +1,27 @@ +--- +name: label new prs +on: + pull_request_target: + types: + - opened + - reopened + - converted_to_draft + - ready_for_review + +jobs: + add_label: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add 'needs_triage' label if the pr is not a draft + uses: actions-ecosystem/action-add-labels@v1 + if: github.event.pull_request.draft == false + with: + labels: needs_triage + + - name: Remove 'needs_triage' label if the pr is a draft + uses: actions-ecosystem/action-remove-labels@v1 + if: github.event.pull_request.draft == true + with: + labels: needs_triage