ci(backport): label backport PRs with their version name (#9073)

* ci(backport): label backport PRs with their version name

Signed-off-by: Ning Sun <sunning@greptime.com>

* ci(backport): restore multi-line PR body string

Signed-off-by: Ning Sun <sunning@greptime.com>

---------

Signed-off-by: Ning Sun <sunning@greptime.com>
This commit is contained in:
Ning Sun
2026-09-09 02:43:45 +00:00
committed by GitHub
parent 4fd35462d6
commit 5706afdfeb
+9
View File
@@ -83,9 +83,18 @@ jobs:
git push origin "${head_branch}"
# Ensure the version label (e.g. "v1.2") exists before attaching it.
# GitHub does not create labels implicitly, so upsert it idempotently.
gh label create "${target}" \
--color 0e8a16 \
--description "Backport to ${release_branch}" \
--force \
|| true
gh pr create \
--base "${release_branch}" \
--head "${head_branch}" \
--label "${target}" \
--title "${PR_TITLE} [Backport ${release_branch}]" \
--body "Backport of #${PR_NUMBER} to ${release_branch}.