Skip to content

Commit

Permalink
fix: fix wrong env var names in help
Browse files Browse the repository at this point in the history
  • Loading branch information
Srynetix committed Apr 4, 2024
1 parent c1195c8 commit e5e53d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/prbot/src/config_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ fn validate_env_vars(config: &Config) -> Result<(), ValidationError> {
if config.api.driver == ApiDriver::GitHub {
match validate_api_credentials(config) {
Err(ApiConfigError::MissingToken) => {
_missing(&mut error, "BOT_GITHUB_API_TOKEN");
_missing(&mut error, "BOT_API_GITHUB_TOKEN");
}
Err(ApiConfigError::MissingAppId) => {
_missing(&mut error, "BOT_GITHUB_APP_ID");
_missing(&mut error, "BOT_API_GITHUB_APP_ID");
}
Err(ApiConfigError::InvalidPrivateKey) => {
_invalid_key(&mut error, "BOT_GITHUB_APP_PRIVATE_KEY");
_invalid_key(&mut error, "BOT_API_GITHUB_APP_PRIVATE_KEY");
}
Err(ApiConfigError::MissingInstallationId) => {
_missing(&mut error, "BOT_GITHUB_APP_INSTALLATION_ID");
_missing(&mut error, "BOT_API_GITHUB_APP_INSTALLATION_ID");
}
_ => (),
}
Expand Down

0 comments on commit e5e53d8

Please sign in to comment.