We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89a2dbe + 4eeb80b commit 96b7fe4Copy full SHA for 96b7fe4
gh-ph
@@ -105,6 +105,10 @@ PR_DETAILS="$(set -eo pipefail; gh pr view "$GH_PH_PULL_REQUEST_ID" --json baseR
105
PR_BASE="$(set -eo pipefail; jq -r '.baseRefName' <<<"$PR_DETAILS")"
106
PR_BODY="$(set -eo pipefail; jq -r '.body' <<<"$PR_DETAILS")"
107
108
+if git rev-parse --quiet --verify --abbrev-ref "$PR_BASE@{push}" >/dev/null && git merge-base --is-ancestor "$PR_BASE" "$PR_BASE@{push}"; then
109
+ PR_BASE="$PR_BASE@{push}"
110
+fi
111
+
112
inject_history "$PR_BASE" <<<"$PR_BODY" | unix2dos | pager
113
114
if read -r -n1 -p 'Update pull request body? [y/n] '; then
0 commit comments