diff --git a/github_app_geo_project/module/standard/changelog.py b/github_app_geo_project/module/standard/changelog.py index 5b06e2ec04..dcfa88854d 100644 --- a/github_app_geo_project/module/standard/changelog.py +++ b/github_app_geo_project/module/standard/changelog.py @@ -512,7 +512,11 @@ def get_actions(self, context: module.GetActionContext) -> list[module.Action[di milestone_version = event_data.get("milestone", {}).get("title") if milestone_version is not None: versions.add(milestone_version) - pull_request_version = event_data.get("pull_request", {}).get("milestone", {}).get("title") + pull_request_version = ( + event_data["pull_request"]["milestone"].get("title") + if event_data.get("pull_request", {}).get("milestone") + else None + ) if pull_request_version is not None: versions.add(pull_request_version) return [