From f881ab04131750ef6f058699955d86aef0fb4f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 3 Jul 2024 16:13:46 +0200 Subject: [PATCH] Changelog: Avoid that a release creation trigger many runs --- github_app_geo_project/module/standard/changelog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/github_app_geo_project/module/standard/changelog.py b/github_app_geo_project/module/standard/changelog.py index 54225207cc8..ad0317f290b 100644 --- a/github_app_geo_project/module/standard/changelog.py +++ b/github_app_geo_project/module/standard/changelog.py @@ -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_application.name + "[bot]" ): return [module.Action(priority=module.PRIORITY_CRON, data={"type": "pull_request"})] if event_data.get("action") == "edited" and "milestone" in event_data: