From 822878622d6d970450c93df247453a65b6f5a6a5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 10 Jan 2025 13:07:43 -0800 Subject: [PATCH] mass-rebuild-reporter: Only search for issues in the current repsitory When looking for the previous issue filed for a mass rebuild, we were searching through repositories in all of GitHub instead of just fedora-llvm-team/llvm-snapshots. This meant that issues filed in forks would prevent the mass rebuild reporter from filing and issue in the main repository. --- .github/workflows/mass-rebuild-reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mass-rebuild-reporter.yml b/.github/workflows/mass-rebuild-reporter.yml index a9a8505c..863fc3fe 100644 --- a/.github/workflows/mass-rebuild-reporter.yml +++ b/.github/workflows/mass-rebuild-reporter.yml @@ -34,7 +34,7 @@ jobs: result-encoding: string script: | const issues = await github.rest.search.issuesAndPullRequests({ - q: "label:mass-rebuild+is:issue", + q: "repo:" + process.env.GITHUB_REPOSITORY + "+label:mass-rebuild+is:issue", sort: "created", order: "desc", per_page: 1