summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-09-07 23:30:03 +0200
committerGitHub <noreply@github.com>2023-09-07 21:30:03 +0000
commitcfa352711834e0c05cce1db9d5c73c4c2eb8e2b6 (patch)
tree8ef6c0b8b35968ebe443f59131e0fe865023fa5c /.github/workflows
parent1a9953348cbb8e8205dc1f923d17b3e40e9f64e0 (diff)
downloadgitea-cfa352711834e0c05cce1db9d5c73c4c2eb8e2b6.tar.gz
gitea-cfa352711834e0c05cce1db9d5c73c4c2eb8e2b6.zip
Add `actions/labeler` (#26962)
Implements https://github.com/GiteaBot/gitea-backporter/issues/93 using [`actions/labeler`](https://github.com/actions/labeler). Very basic configuration, can be extended later.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pull-labeler.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml
new file mode 100644
index 0000000000..c62142b9d2
--- /dev/null
+++ b/.github/workflows/pull-labeler.yml
@@ -0,0 +1,21 @@
+name: labeler
+
+on:
+ pull_request_target:
+ types: [opened, synchronize, reopened]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - uses: actions/labeler@v4
+ with:
+ dot: true
+ sync-labels: true