GitHub CLI extension to collaborate with git-flow release safely.
gh extension install u-minor/gh-gfr
- git-flow-avh
- node and npx
Usage: gh gfr [-r <reviewers>] <version>
reviewers: List of GitHub user ID (<uid>[,<uid>...])
version: <newversion>|major|minor|patch|premajor|preminor|prepatch|prerelease
gh gfr -r foo,bar,baz minor
When your project has package.json or build.sbt, you can use semver string for new version.
- Generate new version from semver string
- Only when package.json or build.sbt exists
- Start git-flow release
- Update package version
- Only when package.json or build.sbt exists
- Finish git-flow release
- Keep release branch to create PR
- Push release branch to GitHub
- Create PR (release -> master) and wait approve (#PR1)
- Do not merge #PR1 on GitHub!
- Push master branch to GitHub
- #PR1 is closed automatically
- Create PR (master -> develop) and wait approve (#PR2)
- Do not merge #PR2 on GitHub!
- Push develop branch to GitHub
- #PR2 is closed automatically
- Cleanup release branch