aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/labeler.yml35
-rw-r--r--.github/workflows/labeler.yml12
2 files changed, 47 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 0000000..3bad6b3
--- /dev/null
+++ b/.github/labeler.yml
@@ -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/*'
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 0000000..e57cd86
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -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