From 0616456cbcb1539bb3db12818a2401db6bb66626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 2 Jul 2024 11:00:27 +0200 Subject: [PATCH] Changelog: Downgrade priority --- github_app_geo_project/module/standard/changelog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github_app_geo_project/module/standard/changelog.py b/github_app_geo_project/module/standard/changelog.py index 3a327aeca8a..54225207cc8 100644 --- a/github_app_geo_project/module/standard/changelog.py +++ b/github_app_geo_project/module/standard/changelog.py @@ -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 []