-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a522bab
commit 1dac399
Showing
1 changed file
with
24 additions
and
24 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 |
---|---|---|
|
@@ -10,43 +10,43 @@ VERSION_NUMBER="${3}" | |
RELEASE_BRANCH_PREFIX="release/" | ||
SEMVER_VERSION="${NEW_VERSION}" | ||
|
||
if [[ -z $NEW_VERSION ]]; then | ||
echo "Error: No new version specified." | ||
exit 1 | ||
fi | ||
# if [[ -z $NEW_VERSION ]]; then | ||
# echo "Error: No new version specified." | ||
# exit 1 | ||
# fi | ||
|
||
RELEASE_BRANCH_NAME="${RELEASE_BRANCH_PREFIX}${NEW_VERSION}" | ||
CHANGELOG_BRANCH_NAME="chore/${NEW_VERSION}-Changelog" | ||
|
||
git config user.name metamaskbot | ||
git config user.email [email protected] | ||
|
||
# echo "Checkout release branch" | ||
# git checkout "${RELEASE_BRANCH_NAME}" | ||
echo "Checkout release branch" | ||
git checkout "${RELEASE_BRANCH_NAME}" | ||
|
||
# echo "Checkout new chore branch" | ||
# git checkout -b "${CHANGELOG_BRANCH_NAME}" | ||
echo "Checkout new chore branch" | ||
git checkout -b "${CHANGELOG_BRANCH_NAME}" | ||
|
||
# #Generate version bump, changelog and test plan csv | ||
# yarn set-version | ||
node ./scripts/generate-rc-commits.mjs "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}" | ||
./scripts/changelog-csv.sh "${RELEASE_BRANCH_NAME}" | ||
# node ./scripts/generate-rc-commits.mjs "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}" | ||
# ./scripts/changelog-csv.sh "${RELEASE_BRANCH_NAME}" | ||
|
||
git add ./commits.csv | ||
# git add ./commits.csv | ||
|
||
if ! (git commit -am "updated changelog and generated feature test plan"); | ||
then | ||
echo "Error: No changes detected." | ||
exit 1 | ||
fi | ||
# if ! (git commit -am "updated changelog and generated feature test plan"); | ||
# then | ||
# echo "Error: No changes detected." | ||
# exit 1 | ||
# fi | ||
|
||
PR_BODY="This is PR updateds the change log for ${NEW_VERSION} and generates the test plan here [commit.csv](https://github.com/MetaMask/metamask-mobile/blob/${RELEASE_BRANCH_NAME}/commits.csv)" | ||
# PR_BODY="This is PR updateds the change log for ${NEW_VERSION} and generates the test plan here [commit.csv](https://github.com/MetaMask/metamask-mobile/blob/${RELEASE_BRANCH_NAME}/commits.csv)" | ||
|
||
git push --set-upstream origin "${CHANGELOG_BRANCH_NAME}" | ||
# git push --set-upstream origin "${CHANGELOG_BRANCH_NAME}" | ||
|
||
gh pr create \ | ||
--draft \ | ||
--title "chore: ${CHANGELOG_BRANCH_NAME}" \ | ||
--body "${PR_BODY}" \ | ||
--base "${RELEASE_BRANCH_NAME}" \ | ||
--head "${CHANGELOG_BRANCH_NAME}"; | ||
# gh pr create \ | ||
# --draft \ | ||
# --title "chore: ${CHANGELOG_BRANCH_NAME}" \ | ||
# --body "${PR_BODY}" \ | ||
# --base "${RELEASE_BRANCH_NAME}" \ | ||
# --head "${CHANGELOG_BRANCH_NAME}"; |