These docs are WIP :)
This is based on Tamara Jordan's coauthor-select tool.
And when I say "based on", basically ripped off and mauled. Sorry Tam.
- cmd/select - allows you to select coauthors from a list. Add this to your prepare-commit-msg hook
- Add tools.go to your project
- Add
require github.com/gypsydave5/ghissue-select v0.1.0
to yourgo.mod
- Run
go mod tidy && go mod vendor
- Create a hooks folder
mkdir .hooks
in your project and enable it as the git hooks foldergit config core.hooksPath .hooks
- Copy /examples/.hooks to your repo and make all files executable
- Commit as you usually do
- You'll be prompted to enter a GitHub Issue ID or be given the option to choose the last ID you used. This is enabled by the prepare-commit-msg hook.
- You'll be warned if you're trying to commit to the trunk without specifying a pair
Check here for defaults and the latest documentation
--issueFile
- the path to your .ghissue file--interactive
- set this to false if you're using a non-interactive console