A package which provides an API which encapsulates a reasonable recurring code review process.
Steps:
- Create a new branch say
code-review
from default branch saymaster
- Continue working on
master
- Create a Pull request from
master
tocode-review
saypr#1
- Review code on source control and report issues
- Merge pull request (
pr#1
) once review items have been addressed - Return to step 2)
Package provides a cli
for the entire process (WIP)
# package uses Go Modules
$ GO111MODULE=on go build ./cmd/code-review/main.go
$ ./main -help
Usage of ./main:
-branch string
Name for review branch (default "code-review")
-head string
Head for code review pull request
-provider string
Version control provider (default "github")
-repo string
Repository (default "test-repo")
-task string
Task to perform
initiate
close
-token string
Access Token (default "loasiqjjhq18982jahsd8912")
-user string
Username (default "mohuk")