From 6392ddb71bb89c089efcc3b099113db00ca797c5 Mon Sep 17 00:00:00 2001 From: Sashank Agarwal Date: Tue, 3 May 2022 13:45:04 +0530 Subject: [PATCH] Auto add labels on new pull request (#6065) * add auto labeler github action * add auto labeler github action --- .github/labeler.yml | 7 +++++++ .github/workflows/labeler.yml | 14 ++++++++++++++ 2 files changed, 21 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 0000000000..936da88835 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,7 @@ +area/docs: +- 'docs/**/*' +- 'operator/docs/*' +sig/operator: +- 'operator/**/*' +kind/feature: +- 'operator/docs/enhancements/*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..19066bc7dc --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +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 }}"