Skip to content

Commit

Permalink
Automatically label pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit authored and jb3 committed Aug 25, 2024
1 parent b9bceb4 commit 134a90f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"group: ansible":
- changed-files:
- any-glob-to-any-file: 'ansible/*'

"group: dns":
- changed-files:
- any-glob-to-any-file: 'dns/*'

"group: docs":
- changed-files:
- any-glob-to-any-file: 'docs/*'

"group: github actions":
- changed-files:
- any-glob-to-any-file: '.github/workflows/*'

"group: kubernetes":
- changed-files:
- any-glob-to-any-file: 'kubernetes/*'

"component: database":
- changed-files:
- any-glob-to-any-file:
- 'ansible/roles/postgres/*'
- 'ansible/roles/prometheus-postgres-exporter/*'

"component: email":
- changed-files:
- any-glob-to-any-file:
- 'ansible/roles/dovecot/*'
- 'ansible/roles/neomutt/*'
- 'ansible/roles/opendkim/*'
- 'ansible/roles/opendmarc/*'
- 'ansible/roles/postfix/*'
- 'ansible/roles/spamassassin/*'
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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

0 comments on commit 134a90f

Please sign in to comment.