Skip to content

Commit

Permalink
Fix for pull request with no milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 6, 2024
1 parent 0c764d1 commit bf5a00b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github_app_geo_project/module/standard/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit bf5a00b

Please sign in to comment.