Skip to content

Commit 4fb1228

Browse files
committed
Don't warn on draft issues or rollup in check_commits super-handler
1 parent 9cc6dce commit 4fb1228

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/handlers/check_commits.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ pub(super) async fn handle(ctx: &Context, event: &Event, config: &Config) -> any
3939

4040
if !matches!(
4141
event.action,
42-
IssuesAction::Opened | IssuesAction::Synchronize
42+
IssuesAction::Opened | IssuesAction::Synchronize | IssuesAction::ReadyForReview
4343
) || !event.issue.is_pr()
4444
{
4545
return Ok(());
4646
}
4747

48+
// Don't ping on rollups or draft PRs.
49+
if event.issue.title.starts_with("Rollup of") || event.issue.draft {
50+
return Ok(());
51+
}
52+
4853
let Some(diff) = event.issue.diff(&ctx.github).await? else {
4954
bail!(
5055
"expected issue {} to be a PR, but the diff could not be determined",

0 commit comments

Comments
 (0)