Skip to content

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

Merged
bcoe merged 3 commits intogoogleapis:mainfrom
pragmaticivan:feature/option-for-default-branch
Jan 31, 2021
Merged

feat(release-please): add default branch input option#202
bcoe merged 3 commits intogoogleapis:mainfrom
pragmaticivan:feature/option-for-default-branch

Conversation

@pragmaticivan
Copy link
Copy Markdown
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
Comment thread test/release-please.js
})
})

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

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 🎉

Comment thread test/release-please.js
}
const releasePR = sinon.stub().returns(25)
const buildStatic = sinon.stub().returns({
run: releasePR
Copy link
Copy Markdown

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
Copy Markdown

bcoe commented Jan 30, 2021

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

@pragmaticivan
Copy link
Copy Markdown
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
Copy Markdown
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