@@ -139,6 +139,9 @@ def received_activity(self, data):
139139 elif data ["action" ] == "checks_requested" :
140140 cla .log .debug ("github_models.received_activity - Handling checks requested pull request" )
141141 return self .process_checks_requested_merge_group (data )
142+ elif data ["action" ] == "enqueued" :
143+ cla .log .debug ("github_models.received_activity - Handling enqueued pull request" )
144+ return self .process_enqueued_pull_request (data )
142145 else :
143146 cla .log .debug ("github_models.received_activity - Ignoring unsupported action: {}" .format (data ["action" ]))
144147
@@ -456,6 +459,18 @@ def process_opened_pull_request(self, data):
456459 installation_id = data ["installation" ]["id" ]
457460 self .update_change_request (installation_id , github_repository_id , pull_request_id )
458461
462+ def process_enqueued_pull_request (self , data ):
463+ """
464+ Helper method to handle a webhook fired from GitHub for an enqueued PR.
465+
466+ :param data: The data returned from GitHub on this webhook.
467+ :type data: dict
468+ """
469+ pull_request_id = data ["pull_request" ]["number" ]
470+ github_repository_id = data ["repository" ]["id" ]
471+ installation_id = data ["installation" ]["id" ]
472+ self .update_change_request (installation_id , github_repository_id , pull_request_id )
473+
459474 def process_checks_requested_merge_group (self , data ):
460475 """
461476 Helper method to handle a webhook fired from GitHub for a merge group event.
0 commit comments