From d806053ecd00e8709c79a394b9cca66f1d8da5b3 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 4 Apr 2025 14:53:56 +0200 Subject: [PATCH 1/2] Don't try to send notifications to GitHub when the issue is 0 (the default), which won't exist. --- bench_runner/gh.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bench_runner/gh.py b/bench_runner/gh.py index 6417ea59..ae76c547 100644 --- a/bench_runner/gh.py +++ b/bench_runner/gh.py @@ -73,6 +73,10 @@ def benchmark( def send_notification(body): conf = config.get_bench_runner_config() notification_issue = conf.get("notify", {}).get("notification_issue", 0) + + if notification_issue == 0: + print("Not sending Github notification.") + return print("Sending Github notification:") print("---") From 009f13f5a90036500257bac9be426b94ff4f64cc Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 4 Apr 2025 14:56:28 +0200 Subject: [PATCH 2/2] Remove trailing whitespace. --- bench_runner/gh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench_runner/gh.py b/bench_runner/gh.py index ae76c547..ba33fec0 100644 --- a/bench_runner/gh.py +++ b/bench_runner/gh.py @@ -73,7 +73,7 @@ def benchmark( def send_notification(body): conf = config.get_bench_runner_config() notification_issue = conf.get("notify", {}).get("notification_issue", 0) - + if notification_issue == 0: print("Not sending Github notification.") return