Skip to content

Commit ba46627

Browse files
committed
Fix check-commits trigger to not required base change
1 parent 81ffa81 commit ba46627

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/handlers/check_commits.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ pub(super) async fn handle(ctx: &Context, event: &Event, config: &Config) -> any
4444
return Ok(());
4545
};
4646

47-
if !matches!(
47+
let should_check = matches!(
4848
event.action,
4949
IssuesAction::Opened
5050
| IssuesAction::Reopened
5151
| IssuesAction::Synchronize
5252
| IssuesAction::ReadyForReview
53-
) || !event.has_base_changed()
54-
|| !event.issue.is_pr()
55-
{
53+
) || event.has_base_changed();
54+
55+
if !should_check || !event.issue.is_pr() {
5656
return Ok(());
5757
}
5858

0 commit comments

Comments
 (0)