Caution
Work in progress
G-stack is a CLI util to simplify creating stacked branches and pull requests on github.
brew tap bendzae/gstackand then
brew install gstackTo be able to create and modify github prs a personal access token is needed.
Check the official github docs
and make sure the token has read/write access to pull requests.
Then create a config file with the following content in $HOME/.gstack/config.toml
personal_access_token = "<GITHUB_PERSONAL_ACCESS_TOKEN>"gs helpCreates a new stack with the current branch as a base and checks out the new branch
gs newStacks a new branch on top of the current stac
gs addPulls, rebases and pushed all stack branches and updates PR descriptions
gs sync
# or
gs ssMove up and down trough stack branches with:
gs up
gs downor interactively select a stack branch with
gs change
#or
gs cCreate github pr's for all stack branches that don't have a pr yet:
gs pr newMerge all stack pr's in sequence to the stacks base branch (takes care of rebases in between merges):
gs pr merge