Title: [288705] trunk/Tools
Revision
288705
Author
[email protected]
Date
2022-01-27 15:18:05 -0800 (Thu, 27 Jan 2022)

Log Message

[EWS] Ignore hooks from closed PRs
https://bugs.webkit.org/show_bug.cgi?id=235666
<rdar://problem/88091611>

Unreviewed follow-up fix.

* Tools/CISupport/ews-build/events.py:
(GitHubEventHandlerNoEdits.handle_pull_request): 'state' is a member of the 'pull_request' dictionary.

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/events.py (288704 => 288705)


--- trunk/Tools/CISupport/ews-build/events.py	2022-01-27 23:07:03 UTC (rev 288704)
+++ trunk/Tools/CISupport/ews-build/events.py	2022-01-27 23:18:05 UTC (rev 288705)
@@ -321,7 +321,7 @@
     def handle_pull_request(self, payload, event):
         pr_number = payload['number']
         action = ""
-        state = payload.get('state')
+        state = payload.get('pull_request', {}).get('state')
         if action not in self.ACTIONS_TO_TRIGGER_EWS:
             log.msg('Action {} on PR #{} does not indicate code has been changed'.format(action, pr_number))
             return ([], 'git')

Modified: trunk/Tools/ChangeLog (288704 => 288705)


--- trunk/Tools/ChangeLog	2022-01-27 23:07:03 UTC (rev 288704)
+++ trunk/Tools/ChangeLog	2022-01-27 23:18:05 UTC (rev 288705)
@@ -1,3 +1,14 @@
+2022-01-27  Jonathan Bedard  <[email protected]>
+
+        [EWS] Ignore hooks from closed PRs
+        https://bugs.webkit.org/show_bug.cgi?id=235666
+        <rdar://problem/88091611>
+
+        Unreviewed follow-up fix.
+
+        * CISupport/ews-build/events.py:
+        (GitHubEventHandlerNoEdits.handle_pull_request): 'state' is a member of the 'pull_request' dictionary.
+
 2022-01-27  Antti Koivisto  <[email protected]>
 
         Default to 32 bit refcount for CanMakeCheckedPtr
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to