Skip to content

Commit 8e3de6e

Browse files
Followup
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 3771ab2 commit 8e3de6e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cla-backend/cla/models/github_models.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,12 @@ def process_enqueued_pull_request(self, data):
466466
:param data: The data returned from GitHub on this webhook.
467467
:type data: dict
468468
"""
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)
469+
merge_group_sha = data.get("pull_request", {}).get("merge_commit_sha")
470+
github_repository_id = data.get("repository", {}).get("id")
471+
installation_id = data.get("installation", {}).get("id")
472+
pull_request_id = data.get("pull_request", {}).get("number")
473+
474+
self.update_merge_group(installation_id, github_repository_id, merge_group_sha, pull_request_id)
473475

474476
def process_checks_requested_merge_group(self, data):
475477
"""

0 commit comments

Comments
 (0)