aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/backport.yml15
-rw-r--r--MAINTAIN.md2
2 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
index 88cddcded4..f89b06fc8f 100644
--- a/.github/workflows/backport.yml
+++ b/.github/workflows/backport.yml
@@ -12,11 +12,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - name: Create backport PRs
+ - name: Create backport PR
+ id: backport
uses: korthout/backport-action@v2
with:
+ pull_title: "${pull_title}"
+ label_pattern: "^ci:backport ([^ ]+)$"
# https://github.com/korthout/backport-action/pull/399
experimental: >
{
"detect_merge_method": true
}
+
+ - uses: actions/github-script@v7
+ with:
+ script: |
+ github.rest.issues.addLabels({
+ issue_number: ${{steps.backport.outputs.created_pull_numbers}},
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ labels: ['backport']
+ })
diff --git a/MAINTAIN.md b/MAINTAIN.md
index 20af75ce9d..b8e60908a9 100644
--- a/MAINTAIN.md
+++ b/MAINTAIN.md
@@ -231,7 +231,7 @@ https://github.com/neovim/neovim-backup
Some github labels are used to trigger certain jobs:
-* `backport release-x.y` - backport to release branch
+* `ci:backport release-x.y` - backport to branch `release-x.y`
* `ci:s390x` - enable s390x CI
* `ci:skip-news` - skip news.yml workflows
* `ci:windows-asan` - test windows with ASAN enabled