Skip to content

Commit 1a281b8

Browse files
committed
Take all commits that look like rollup merges
1 parent fc9dd35 commit 1a281b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/request_handlers/github.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ async fn handle_push(ctxt: Arc<SiteCtxt>, push: github::Push) -> ServerResult<gi
5151
let rollup_merges = commits
5252
.iter()
5353
.rev()
54-
.skip(1) // skip the head commit
55-
.take_while(|c| c.message.starts_with("Rollup merge of "));
54+
.filter(|c| c.message.starts_with("Rollup merge of #"));
5655
let result = unroll_rollup(
5756
ci_client,
5857
main_repo_client,

0 commit comments

Comments
 (0)