From d9021b253f2dbf6cc4b7be802e5cc4d31c80527f Mon Sep 17 00:00:00 2001 From: Adam Reif Date: Wed, 29 Mar 2023 10:12:27 -0500 Subject: [PATCH] don't run script on non-PRs Signed-off-by: Adam Reif --- .github/workflows/check_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check_tests.yml b/.github/workflows/check_tests.yml index e1c4ce8bd..e27208436 100644 --- a/.github/workflows/check_tests.yml +++ b/.github/workflows/check_tests.yml @@ -102,6 +102,7 @@ jobs: const number = context.issue.number; const owner = context.repo.owner; const repo = context.repo.repo; + if (!number) return; // Ignore non-PR CI runs const comment_text = "Congestion test: 1-day congestion cost (calamari)" // find or create a comment in the PR const { data } = await octokit.rest.issues.listComments({ owner, repo, issue_number: number });