Skip to content

Commit

Permalink
feat: ignore non pull-request check_suite
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Apr 19, 2024
1 parent 79ce87c commit daaa405
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ async fn pull_request_handler(
return Ok(());
}

if event.check_suite.pull_requests.is_empty() {
info!("Ignoring non pull request check_suite event");
return Ok(());
}

CocogittoBot::from_check_suite(event, &state.github_key)
.await?
.run()
Expand Down

0 comments on commit daaa405

Please sign in to comment.