mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-20 23:43:10 +02:00
ci: derive topic labels from PR title (#38595)
Derives topic labels from the PR title scope: `enhance(actions): ...` gets `topic/gitea-actions`. Scopes map to `topic/<scope>`, with aliases for names that differ (`oauth` → `topic/authentication`). Labels stay in sync with the title, while ones applied by hand are left alone. Scopes with no matching label on the repo are ignored, so no new labels get created. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
1 parent
0e8bafc267
commit
29b99de940
2 files changed
+60
-12
No files matched your search
@@ -43,5 +43,6 @@ jobs:
|
||||
- run: node ./tools/ci-tools.ts set-pr-labels
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
PR_TITLE_BEFORE: ${{ github.event.changes.title.from }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
Reference in new issue
Block a user