cookpad / cp8_cli

Cookpad Global CLI
MIT License
19 stars 10 forks source link

Add support for repositories which no longer use `master` as their default branch name #53

Closed sikachu closed 3 years ago

sikachu commented 3 years ago

This PR updates the pull request mechanic to call GitHub API and asks for default branch name to be use as the base branch, as suggested in https://github.com/cookpad/cp8_cli/pull/51#issuecomment-779305468

I also added another commit to cleanup stub_repo method to make it accepts :count arguments for when we have to stub the call to get the local repository information multiple times.

Knack commented 3 years ago

:+1: