Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = koanf.New(".")
A koanf config with dot as delimiter.
Loads $XDG_CONFIG_HOME/gerritr/config.yml expecting a structure like below:
aliases: team1: - b1@org.com - b2@org.com team2: - f1@org.com - f2@org.com
Functions ¶
func Resolve ¶
Resolves reviewers from the input parameters and REVIEWERS file
For each string in the input slice,
- If it is an email ID, adds as is
- If it is not an email ID, assumes it to be a alias. Tries to resolve the alias from config
In parallel, reads REVIEWERS file and adds each line.
Returns a slice of resolved reviewers, with each element prefixed with "r=", as per the format required by Gerrit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.