mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-10 07:22:17 +00:00
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:
@@ -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}.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user