Skip to content

Document Git Username #50

@oseda-testing

Description

@oseda-testing

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'

Metadata

Metadata

Assignees

Labels

1.0Needed for 1.0 release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions