Skip to content

Commit

Permalink
chore: rename secret to github_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 11, 2024
1 parent 18e5932 commit 3a004ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions server/src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ pub async fn answer(bot: Bot, msg: Message, cmd: Command, pool: DbPool) -> Respo
return Ok(());
}

let secret = match ARGS.secret.as_ref() {
let secret = match ARGS.github_secret.as_ref() {
Some(s) => s,
None => {
bot.send_message(msg.chat.id, "SECRET is not set").await?;
bot.send_message(msg.chat.id, "GITHUB_SECRET is not set").await?;
return Ok(());
}
};
Expand Down
10 changes: 5 additions & 5 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ pub struct Args {
#[arg(env = "DATABASE_URL")]
pub database_url: String,

#[arg(env = "ABBS_PATH")]
pub abbs_path: PathBuf,

/// GitHub access token
#[arg(env = "BUILDIT_GITHUB_ACCESS_TOKEN")]
pub github_access_token: String,

#[arg(env = "ABBS_PATH")]
pub abbs_path: PathBuf,

/// Secret
#[arg(env = "SECRET")]
pub secret: Option<String>,
#[arg(env = "GITHUB_SECRET")]
pub github_secret: Option<String>,

#[arg(env = "GITHUB_APP_ID")]
pub github_app_id: Option<String>,
Expand Down

0 comments on commit 3a004ff

Please sign in to comment.