A quick workflow for starting new stories:
- Automatically generates branch name from story description.
- Creates and checks out the new branch.
- Opens a draft pull request with title based on story description.
- (When given a GitHub issue) assigns user to issue and populates PR title/description.
Extracted from https://github.com/cookpad/cp8_cli to work with the GitHub Cli.
gh start "My new story" # creates jb/my-new-story branch and opens PR
gh start https://github.com/balvig/gh-start/issues/1 # creates jb/issue-title branch and opens PR
- Install GitHub CLI
- Requires Ruby and Bundler to be installed.
gh extension install https://github.com/balvig/gh-start
To upgrade to the lastest version:
gh extension upgrade start
The code is available as open source under the terms of the MIT License.