Skip to content

Commit

Permalink
chore(ci): add labeler action (#42)
Browse files Browse the repository at this point in the history
* Add labeler config

* Add labeler workflow

* Update labeler config
  • Loading branch information
raducristianpopa authored Dec 11, 2023
1 parent 71176b4 commit 1d62ca2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'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'
- '!.github/actions/**/*.md'

'area: tests':
- any:
- changed-files:
- any-glob-to-any-file: '**/*.test.ts'
21 changes: 21 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1d62ca2

Please sign in to comment.