Skip to content

Commit

Permalink
Update backport
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen authored Aug 16, 2024
1 parent 4a0c4cd commit 0fe4d62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backport
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ SUFFIX="${TARGET##*/}"

log_info "Backporting the last commit from $SOURCE onto $TARGET"

COMMIT_MSG=$(git show -s --format='%s' "$SOURCE")ORIGINAL_PR_NUMBER=$(echo "$COMMIT_MSG" | grep --extended-regexp --only-matching '
COMMIT_MSG=$(git show -s --format='%s' "$SOURCE")
ORIGINAL_PR_NUMBER=$(echo "$COMMIT_MSG" | grep --extended-regexp --only-matching '
ORIGINAL_PR_NUMBER=$(get_pr_number "$COMMIT_MSG")
NEW_COMMIT_MSG="$( echo "${COMMIT_MSG// \(\#$ORIGINAL_PR_NUMBER\)}" | sed -r 's/ \[.+\]//g') [$SUFFIX]"
UPSTREAM_URL="$(git remote get-url upstream)"
Expand Down

0 comments on commit 0fe4d62

Please sign in to comment.