Skip to content

Commit

Permalink
Forgot a couple
Browse files Browse the repository at this point in the history
  • Loading branch information
marsavar committed Jul 2, 2024
1 parent f38db46 commit 174aa04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async fn scan_repository(
repository_name: String,
github_token: &String,
ignored_users: &Vec<&str>,
announced_users: &Option<Vec<i32>>,
announced_users: &Option<Vec<usize>>,
ignored_labels: &Vec<&str>,
) -> Result<Vec<GithubPullRequest>, Error> {
info!("Starting PR scan of {}", repository_name);
Expand Down Expand Up @@ -128,7 +128,7 @@ async fn main() -> Result<(), Error> {
env::var("GOOGLE_WEBHOOK_URL").context("GOOGLE_WEBHOOK_URL must be set")?;
let ignored_users: String = env::var("GITHUB_IGNORED_USERS").unwrap_or("".to_string());
let ignored_users: Vec<&str> = ignored_users.split(",").collect();
let announced_users: Option<Vec<i32>> = env::var("GITHUB_ANNOUNCED_USERS")
let announced_users: Option<Vec<usize>> = env::var("GITHUB_ANNOUNCED_USERS")
.ok()
.and_then(|s| {
if s.is_empty() {
Expand Down

0 comments on commit 174aa04

Please sign in to comment.