forked from SteamWar/SteamWar
@@ -127,7 +127,7 @@ jobs:
|
||||
failures=()
|
||||
for target_branch in "${version_branches[@]}"; do
|
||||
safe_target="$(sed -E 's#[^A-Za-z0-9._-]+#-#g; s#^-+##; s#-+$##' <<< "$target_branch")"
|
||||
head_branch="backport/pr-${pr_number}-to-${safe_target}"
|
||||
head_branch="backport-pr-${pr_number}-to-${safe_target}"
|
||||
|
||||
existing_pr="$(api GET "${repo_path}/pulls?state=open&base_branch=$(jq -rn --arg value "$target_branch" '$value|@uri')&limit=50" |
|
||||
jq -r --arg head "$head_branch" '.[] | select(.head.ref == $head) | .number' |
|
||||
@@ -188,7 +188,6 @@ jobs:
|
||||
-o "topic=${head_branch}" \
|
||||
-o "title=Backport #${pr_number} to ${target_branch}: ${pr_title}" \
|
||||
-o "description=${description}" \
|
||||
-o "force-push" \
|
||||
origin "HEAD:refs/for/${target_branch}"
|
||||
echo "Created backport PR from ${head_branch} to ${target_branch}."
|
||||
git checkout main
|
||||
|
||||
Reference in New Issue
Block a user