aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-08-25 20:07:43 +0200
committerGravatar Joe Banks <[email protected]>2024-08-25 20:34:08 +0100
commit134a90fb732afcd7a8e2413ae7f5bab3d3a6a2c2 (patch)
tree54fc0f703d018ff60e0a1840a481887623c7c8d0
parentBind NGINX hosts on IPv6 as well (diff)
Automatically label pull requests
-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