Skip to content

Commit 04c4316

Browse files
authored
Merge pull request #393 from Yhg1s/skip-notifications
Don't try to send notifications to GitHub when the issue is 0.
2 parents 1296fd9 + 009f13f commit 04c4316

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bench_runner/gh.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def send_notification(body):
7474
conf = config.get_bench_runner_config()
7575
notification_issue = conf.get("notify", {}).get("notification_issue", 0)
7676

77+
if notification_issue == 0:
78+
print("Not sending Github notification.")
79+
return
80+
7781
print("Sending Github notification:")
7882
print("---")
7983
print(body)

0 commit comments

Comments
 (0)