From 4fe4836b18d9990a2e74fa77d2c5e70632741cb3 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..bf3df9ae7e2 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_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: