Skip to content

Commit 3eb264b

Browse files
committed
Generalize branch check in rustc_commits handler
1 parent 346ecd6 commit 3eb264b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/rustc_commits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> {
6868
log::trace!("Not build completion? {:?}", bors);
6969
}
7070

71-
if bors.base_ref != "master" {
72-
log::trace!("Ignoring bors merge, not on master");
71+
if bors.base_ref != event.repository.default_branch {
72+
log::trace!("Ignoring bors merge, not on the default branch");
7373
return Ok(());
7474
}
7575

0 commit comments

Comments
 (0)