From 0f8f9ccb04a9b3132b30d055c00b9013ce5bd450 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Wed, 11 Jan 2023 11:59:05 +0100 Subject: [PATCH] chore: add pull request labeler --- .github/labeler.yml | 25 +++++++++++++++++++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 40 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 0000000..2804a99 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,25 @@ +enhancement: + - feat-* + - feat/* + - feature-* + - feature/* + +bug: + - fix-* + - fix/* + - bugfix-* + - bugfix/* + - bug-* + - bug/* + +chore: + - chore-* + - chore/* + +# Labels are also automatically added by renovate +dependencies: + - renovate/* + +content: + - content-* + - content/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..9f35f39 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +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 }}"