Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(release-please): add default branch input option #202

Merged
merged 3 commits into from
Jan 31, 2021

Conversation

pragmaticivan
Copy link
Contributor

@google-cla google-cla bot added the cla: yes label Jan 29, 2021
@pragmaticivan pragmaticivan force-pushed the feature/option-for-default-branch branch from 18a5426 to 0006e9b Compare January 30, 2021 00:05
@@ -46,6 +46,48 @@ describe('release-please-action', () => {
})
})

it('both opens PR to a different default branch and tags GitHub releases by default', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for the test 🎉

}
const releasePR = sinon.stub().returns(25)
const buildStatic = sinon.stub().returns({
run: releasePR
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind adding the inverse too, that confirms we default to undefined for the default branch? (at which point the default branch is currently detected).

@bcoe
Copy link
Contributor

bcoe commented Jan 30, 2021

@pragmaticivan thank you for the contribution, one thought about a good additional test.

@pragmaticivan
Copy link
Contributor Author

@bcoe just added a slight change on the test covering both. I felt it made more sense to complement the first test (default branch) as my change was a variation of the first one.

@pragmaticivan
Copy link
Contributor Author

@bcoe I've also added this input into the readme. Missed that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Add ability to change default branch
2 participants