Skip to content

Get minimum number of reviewers needed for a PR that has X number of team reviews required

Notifications You must be signed in to change notification settings

itsHabib/min-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Min Reviews

Have you ever been hit with a PR that has an insane amount of required reviewers from various different GitHub teams due to an overly complicated code owners file? Well I have plenty of times and decided to make a little script that can help. This script will let you know the minimum required reviewers for a PR that covers all teams. Some things to note:

  • This is only useful if users can span multiple GitHub teams in your org
  • This assumes you have the required permissions in your token to get a PR and team members

Usage

GH_TOKEN=token go run cmd/main.go -repo="my-repo" -pr=1234

With Exclusions

GH_TOKEN=token go run cmd/main.go -repo="my-repo" -pr=1234 -exclude="user1,user2"

About

Get minimum number of reviewers needed for a PR that has X number of team reviews required

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages