Skip to content

Commit

Permalink
Changelog: Avoid that a release creation trigger many runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 3, 2024
1 parent 0ba5d82 commit 4fe4836
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github_app_geo_project/module/standard/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def get_actions(self, context: module.GetActionContext) -> list[module.Action[di
)
and event_data.get("pull_request", {}).get("state") == "closed"
and event_data.get("pull_request", {}).get("milestone")
and event_data.get("sender", {}).get("login") != context.github_project.app_name + "[bot]"
):
return [module.Action(priority=module.PRIORITY_CRON, data={"type": "pull_request"})]
if event_data.get("action") == "edited" and "milestone" in event_data:
Expand Down

0 comments on commit 4fe4836

Please sign in to comment.