Skip to content

Commit d806053

Browse files
committed
Don't try to send notifications to GitHub when the issue is 0 (the default),
which won't exist.
1 parent 0dee4d0 commit d806053

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: bench_runner/gh.py

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def benchmark(
7373
def send_notification(body):
7474
conf = config.get_bench_runner_config()
7575
notification_issue = conf.get("notify", {}).get("notification_issue", 0)
76+
77+
if notification_issue == 0:
78+
print("Not sending Github notification.")
79+
return
7680

7781
print("Sending Github notification:")
7882
print("---")

0 commit comments

Comments
 (0)