-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release commit and pr body error
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,14 +61,16 @@ main() { | |
git config user.email "[email protected]" | ||
git config user.name "Pantheon Automation" | ||
|
||
RELEASE_MESSAGE="Release ${NEW_VERSION}. If CI tests have not run, close this PR and re-open it." | ||
RELEASE_MESSAGE="Release ${NEW_VERSION}" | ||
git commit -m "${RELEASE_MESSAGE}" | ||
git push origin "${RELEASE_BRANCH}" --force | ||
|
||
# Create a draft PR | ||
if ! gh pr view "${RELEASE_BRANCH}"; then | ||
local PR_TITLE="${RELEASE_MESSAGE}" | ||
local PR_BODY="${RELEASE_MESSAGE}. If CI tests have not run, close this PR and re-open it." | ||
gh pr create --draft --base "release" \ | ||
--title "${RELEASE_MESSAGE}" --body "${RELEASE_MESSAGE}." \ | ||
--title "${PR_TITLE}" --body "${RELEASE_BODY}" \ | ||
--label "automation" | ||
fi | ||
} | ||
|