in config.rs, we do
let user_name = github::get_config_from_user_git("user.name")
.ok_or("Could not get github username. Please ensure you are signed into github")?;
Which runs
pub fn get_config_from_user_git(key: &str) -> Option<String> {
let handle = Command::new("git")
.arg("config")
.arg("list")
.output()
.ok()?;
let conf_out = String::from_utf8(handle.stdout).ok()?;
get_key_from_conf(key, &conf_out)
}
This git config user.name is not always the same. We are assuming that this is the case. It should be for most devs. This should be documented somewhere that your 'git username' should match your 'github username'
in config.rs, we do
Which runs
This
git config user.nameis not always the same. We are assuming that this is the case. It should be for most devs. This should be documented somewhere that your 'git username' should match your 'github username'