cr

command module
v0.0.0-...-8cafb24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

cr

cr is a tool to help kubernetes/kubernetes reviewers and approvers better understand the impact of approving a change. The tool takes in the number of the PR being reviewed and tabulates what other open PRs exist that are making changes to atleast one of the same files that the PR under review is making changes to. Additionally, the PRs tabulated are then expected to have one of these three labels:

  • priority/critical-urgent
  • priority/important-soon
  • priority/important-longterm

The tool was mainly inspired after watching this video.

For ex:

output

By having this list of PRs, reviewers could better prioritise what changes should land first or if changes to a particular part of the codebase should be halted till more reliability work on it is done.

Installation

Pre-requisites
export GITHUB_TOKEN="<your token>"
Using the tool

Install:

go install github.com/MadhavJivrajani/cr@latest

Use:

cr --pr <pr number>

Future work

  • Right now the tool does exact match of the file paths, having an option to do prefix match would be helpful.
  • Based on prefix match, we could get test coverage data on the parent packages

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳