Skip to content

feat: STRF-10840 Provide optional --branch to release command#1111

Merged
jairo-bc merged 1 commit intobigcommerce:masterfrom
jairo-bc:STRF-10840
Jun 15, 2023
Merged

feat: STRF-10840 Provide optional --branch to release command#1111
jairo-bc merged 1 commit intobigcommerce:masterfrom
jairo-bc:STRF-10840

Conversation

@jairo-bc
Copy link
Contributor

@jairo-bc jairo-bc commented Jun 14, 2023

What?

Added optional --branch, -b options to stencil release to support custom main branch name

Tickets / Documentation

Screenshots (if appropriate)

Screenshot 2023-06-14 at 13 45 27

cc @bigcommerce/storefront-team

throw new Error('Not on master branch, please checkout master branch to proceed');
if (gitData.current !== options.branch) {
throw new Error(
`Not on ${options.branch} branch, please checkout master branch to proceed`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Not on ${options.branch} branch, please checkout master branch to proceed`,
`Not on ${options.branch} branch, please checkout ${options.branch} branch to proceed`,

I assume it is possible situation when gitData is on branch test1 and our input is test2. In this case error message will be confusing.

@jairo-bc jairo-bc merged commit d5b9103 into bigcommerce:master Jun 15, 2023
@github-actions
Copy link
Contributor

🎉 This PR is included in version 7.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

jairo-bc added a commit to jairo-bc/stencil-cli that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants