Skip to content

Commit 34c01cb

Browse files
Fix rust-lang/rust filters on commits and milestone handlers
Previously we would make an attempt if at least one of the organization or repository was "rust-lang" or "rust", respectively.
1 parent 26375ea commit 34c01cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/handlers/milestone_prs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> {
1818
}
1919

2020
let repo = e.issue.repository();
21-
if repo.organization != "rust-lang" && repo.repository != "rust" {
21+
if !(repo.organization == "rust-lang" && repo.repository == "rust") {
2222
return Ok(());
2323
}
2424

src/handlers/rustc_commits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> {
3434
}
3535

3636
let repo = event.issue.repository();
37-
if repo.organization != "rust-lang" && repo.repository != "rust" {
37+
if !(repo.organization == "rust-lang" && repo.repository == "rust") {
3838
return Ok(());
3939
}
4040

0 commit comments

Comments
 (0)