Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ echo "Committing changes locally"
${GIT} add .
${GIT} commit -am "$(echo -e "migration: post-process\n\nThis includes post processing for:\n${*//\"/}")"
${GIT} push -u origin "${BRANCH}" --force
gh pr create --title "chore(migration): Update common files for batch migration" --body "This updates the common files for the migration batch that contains ${*//\"/}"
gh pr create --draft --title "chore(migration): Update common files for batch migration" --body "This updates the common files for the migration batch that contains ${*//\"/}"
${GIT} checkout main # to restore to a known state and allow reruns
## END commit changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ git push -u origin "${BRANCH}" --force
# create pull request
if which gh > /dev/null
then
while ! gh pr create --title "chore(migration): Migrate code from ${SOURCE_REPO} into ${TARGET_PATH}" --body "$(echo -e "See #${ISSUE_NUMBER}. \n\nThis PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.")" ; do
while ! gh pr create --draft --title "chore(migration): Migrate code from ${SOURCE_REPO} into ${TARGET_PATH}" --body "$(echo -e "See #${ISSUE_NUMBER}. \n\nThis PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.")" ; do
echo "** PR creation command FAILED (${SOURCE_REPO} --> ${TARGET_PATH}) : sleeping & retrying"
sleep 30s
done
else
hub pull-request -m "migrate code from ${SOURCE_REPO}"
hub pull-request --draft -m "migrate code from ${SOURCE_REPO}"
fi

popd >& /dev/null
Expand Down
Loading