From e2c376898d5abe7466292067d1cc59c07fa55a2c Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 26 Feb 2025 10:02:25 -0600 Subject: [PATCH] Fix test-with-buildbots label handling Fixes #578, a bug introduced by #576 for #327. I was mislead by the number extraction in another part of the file. --- master/custom/pr_testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/custom/pr_testing.py b/master/custom/pr_testing.py index 9978e103..d1931eba 100644 --- a/master/custom/pr_testing.py +++ b/master/custom/pr_testing.py @@ -84,7 +84,7 @@ def _remove_label_and_comment(self, payload, label): url = payload["pull_request"]["comments_url"] username = payload["sender"]["login"] commit = payload["pull_request"]["head"]["sha"] - pr_number = payload["issue"]["number"] + pr_number = payload["pull_request"]["number"] yield http.post( url.replace(self.github_api_endpoint, ""), json={