From e2052b152b96fa6474bf276db7134faf9739ab1d Mon Sep 17 00:00:00 2001 From: "Max T. Kristiansen" Date: Sat, 27 Jul 2024 13:30:32 +0200 Subject: [PATCH] ci: Add 'labeler' workflow --- .github/labeler.yml | 17 +++++++++++++++++ .github/workflows/labeler.yml | 13 +++++++++++++ 2 files changed, 30 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..f6497c4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +# yaml-language-server: $schema=https://json.schemastore.org/pull-request-labeler.json + +docs: + - changed-files: + - any-glob-to-any-file: 'docs/*' + +enhancement: + - head-branch: ['^feat\(', '^feat:'] + +bug-fix: + - head-branch: ['^fix\(', '^fix:'] + +build: + - changed-files: + - any-glob-to-any-file: + - .build/* + - .github/workflows/* \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..0922146 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +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 \ No newline at end of file