Skip to content

Commit

Permalink
build: skip labeler for auto PRs and only assign when all files match
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Mar 18, 2024
1 parent f7fe573 commit 7efd89c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

BLAS:
- changed-files:
- any-glob-to-any-file: '**/blas/**/*'
- any-glob-to-all-files: '**/blas/**/*'

Math:
- changed-files:
- any-glob-to-any-file: '**/math/**/*'
- any-glob-to-all-files: '**/math/**/*'
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
# Define job name:
name: 'Labeler'

# Only run this job if the pull request did not have label `automated-pr`:
if: contains(github.event.pull_request.labels.*.name, 'automated-pr') == false

# Define job permissions:
permissions:
contents: read
Expand Down

0 comments on commit 7efd89c

Please sign in to comment.