Skip to main content

Module credentials

Module credentials 

Source

Re-exports§

pub use prompt::prompt_for_token;
pub use prompt::reprompt_for_token;
pub use prompt::setup_token_if_missing;

Modules§

prompt

Constants§

ENV_TOKEN_VAR
Environment variable name for providing a GitHub token

Functions§

get_token_from_env
Check for a GitHub token in the PR_BRO_GH_TOKEN environment variable. Returns Some(token) if the env var is set and non-empty, None otherwise.