From 641945b308a2faba1b1ef46f333bd6517ffd12dd Mon Sep 17 00:00:00 2001 From: Radu-Cristian Popa Date: Fri, 8 Dec 2023 19:20:16 +0200 Subject: [PATCH 1/3] Add labeler config --- .github/labeler.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..c87b89bb --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +'area: background': + - any: + - changed-files: + - any-glob-to-any-file: 'src/background/**/*' + +'area: ci': + - any: + - changed-files: + - any-glob-to-any-file: '.github/**/*.yml' + +'area: content': + - any: + - changed-files: + - any-glob-to-any-file: 'src/content/**/*' + +'area: popup': + - any: + - changed-files: + - any-glob-to-any-file: 'src/popup/**/*' + +'area: documentation': + - any: + - changed-files: + - all-globs-to-any-file: + - '**/*.md' + - '!scripts/**/*.md' + +'area: scripts': + - any: + - changed-files: + - any-glob-to-any-file: 'scripts/**/*' + +'area: tests': + - any: + - changed-files: + - any-glob-to-any-file: '**/*.test.ts' From 019b8715cd0621f71d1c321c8b3f2910d859d0d7 Mon Sep 17 00:00:00 2001 From: Radu-Cristian Popa Date: Sat, 9 Dec 2023 11:17:46 +0200 Subject: [PATCH 2/3] Add labeler workflow --- .github/workflows/labels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..82aa1988 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,21 @@ +name: PR Labeler + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + +jobs: + label: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-22.04 + steps: + - name: Add labels + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true From b62d079fd54576c017be1240688dee58c1ae6782 Mon Sep 17 00:00:00 2001 From: Radu-Cristian Popa Date: Mon, 11 Dec 2023 08:44:06 +0200 Subject: [PATCH 3/3] Update labeler config --- .github/labeler.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index c87b89bb..330791c3 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -23,12 +23,7 @@ - changed-files: - all-globs-to-any-file: - '**/*.md' - - '!scripts/**/*.md' - -'area: scripts': - - any: - - changed-files: - - any-glob-to-any-file: 'scripts/**/*' + - '!.github/actions/**/*.md' 'area: tests': - any: