From 885bc4742d3de42614d0bea1a242187516473637 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 13 Sep 2022 07:33:13 -0600 Subject: Enable github labeler, use for api-change Belated followup to #11829: use github labeler workflow[1] to auto-add 'kind/api-change' label to PRs in which files are touched under pkg/api [1] https://github.com/actions/labeler Signed-off-by: Ed Santiago --- .github/labeler.yml | 4 ++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..4d00baca9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,4 @@ +# Add labels based on file paths in PR +# https://github.com/actions/labeler +kind/api-change: + - pkg/api/**/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..64505bbfe --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +# https://github.com/actions/labeler +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" -- cgit v1.2.3-54-g00ecf