add pr labeler workflow to label based on files changed

This commit is contained in:
Joel Wetzell 2024-07-31 12:59:19 -05:00
parent 7c33fd413e
commit 5fec5f8217
2 changed files with 64 additions and 0 deletions

51
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,51 @@
docs:
- changed-files:
- any-glob-to-any-file: 'docs/**'
packages/bruno-app:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-app/**'
packages/bruno-cli:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-cli/**'
packages/bruno-common:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-common/**'
packages/bruno-docs:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-docs/**'
packages/bruno-electron:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-electron/**'
packages/bruno-graphql-docs:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-graphql-docs/**'
packages/bruno-js:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-js/**'
packages/bruno-lang:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-lang/**'
packages/bruno-query:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-query/**'
packages/bruno-schema:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-schema/**'
packages/bruno-tests:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-tests/**'
packages/bruno-toml:
- changed-files:
- any-glob-to-any-file: 'packages/bruno-toml/**'

13
.github/workflows/pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: 'Pull Request Labeler'
on:
- pull_request_target
jobs:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
sync-labels: true