From d12344503b5fe7ef82f1447d1461712a3b68d122 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 11 Oct 2024 15:08:32 -0500 Subject: [PATCH] Add GitHub action to label proposal PRs This adds `needs-triage` to any PR that changes the proposals folder, which will cause it to appear on our triage board. --- .github/pr-labels.yml | 2 ++ .github/workflows/pr-labeler.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/pr-labels.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/pr-labels.yml b/.github/pr-labels.yml new file mode 100644 index 00000000..fb185d70 --- /dev/null +++ b/.github/pr-labels.yml @@ -0,0 +1,2 @@ +needs-triage: + - proposals/**/* diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..1b6827e9 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + configuration-path: .github/prs-labels.yml