summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Holman <brett.holman@canonical.com>2023-05-02 16:02:31 +0200
committerGitHub <noreply@github.com>2023-05-02 16:02:31 +0200
commit76fe7ddb590f05a650f22fb15a7764320f58a42e (patch)
treecff8cce34e9c782be247f829a148818ab6c838a5
parent967104088db0e9724096e3776c9c31ccbb3f97cb (diff)
downloadcloud-init-git-76fe7ddb590f05a650f22fb15a7764320f58a42e.tar.gz
Add documentation label automatically (#2156)
-rw-r--r--.github/labeler.yml2
-rw-r--r--.github/workflows/doc-autolabel.yml12
2 files changed, 14 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000..b341bb50
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,2 @@
+documentation:
+- doc/*
diff --git a/.github/workflows/doc-autolabel.yml b/.github/workflows/doc-autolabel.yml
new file mode 100644
index 00000000..54c065bd
--- /dev/null
+++ b/.github/workflows/doc-autolabel.yml
@@ -0,0 +1,12 @@
+name: Label documentation changes automatically
+on:
+- pull_request_target
+
+jobs:
+ triage:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v4