Skip to content

Commit

Permalink
update release action to not create the release branch but just open …
Browse files Browse the repository at this point in the history
…the PR
  • Loading branch information
sethkfman committed Oct 17, 2024
1 parent 0482c6e commit 8605f55
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,36 @@ fi

RELEASE_BRANCH_NAME="${RELEASE_BRANCH_PREFIX}${NEW_VERSION}"
CHANGELOG_BRANCH_NAME="chore/${NEW_VERSION}-Changelog"
RELEASE_BODY="This is the release candidate for version ${NEW_VERSION}. The changelog will be found in another PR ${CHANGELOG_BRANCH_NAME}."
RELEASE_BODY="This is the release candidate for version ${NEW_VERSION}. The changelog will be found in another PR ${CHANGELOG_BRANCH_NAME}.
# Team sign-off checklist
- [] team-security
- [] team-platform
- [] team-snaps-platform
- [] team-sdk
- [] team-assets
- [] team-notifications
- [] team-confirmations
- [] team-design-system
- [] team-tiger
- [] team-wallet-framework
- [] team-stake
- [] team-accounts
# Reference
- Testing plan sheet - https://docs.google.com/spreadsheets/d/1tsoodlAlyvEUpkkcNcbZ4PM9HuC9cEM80RZeoVv5OCQ/edit?gid=404070372#gid=404070372"

git config user.name metamaskbot
git config user.email [email protected]

git checkout -b "${RELEASE_BRANCH_NAME}"

if ! (git add . && git commit -m "${NEW_VERSION}");
then
echo "Error: No changes detected."
exit 1
fi

git push --set-upstream origin "${RELEASE_BRANCH_NAME}"

gh pr create \
--draft \
--title "feat: ${NEW_VERSION}" \
--body "${RELEASE_BODY}" \
--head "${RELEASE_BRANCH_NAME}";


git checkout -b "${CHANGELOG_BRANCH_NAME}"


#Generate changelog and test plan csv
node ./scripts/generate-rc-commits.mjs "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}"
./scripts/changelog-csv.sh "${RELEASE_BRANCH_NAME}"
Expand Down

0 comments on commit 8605f55

Please sign in to comment.