Skip to content

Commit

Permalink
Changelog: Downgrade priority
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 2, 2024
1 parent cc3048c commit 0616456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github_app_geo_project/module/standard/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ 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")
):
return [module.Action(priority=module.PRIORITY_STATUS, data={"type": "pull_request"})]
return [module.Action(priority=module.PRIORITY_CRON, data={"type": "pull_request"})]
if event_data.get("action") == "edited" and "milestone" in event_data:
return [module.Action(priority=module.PRIORITY_STATUS, data={"type": "milestone"})]
return [module.Action(priority=module.PRIORITY_CRON, data={"type": "milestone"})]
if event_data.get("action") in ("created", "closed") and "discussion" in event_data:
return [module.Action(priority=module.PRIORITY_STATUS, data={"type": "discussion"})]
return [module.Action(priority=module.PRIORITY_CRON, data={"type": "discussion"})]

return []

Expand Down

0 comments on commit 0616456

Please sign in to comment.