From 0525c4663976b947fa4892ea9ffa834fff51b5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 21 Oct 2023 13:41:53 +0200 Subject: [PATCH] Don't create tasks for unsupported branches --- src/oca_github_bot/tasks/main_branch_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oca_github_bot/tasks/main_branch_bot.py b/src/oca_github_bot/tasks/main_branch_bot.py index 966acb1d..6e053bb5 100644 --- a/src/oca_github_bot/tasks/main_branch_bot.py +++ b/src/oca_github_bot/tasks/main_branch_bot.py @@ -122,6 +122,8 @@ def main_branch_bot_all_repos(org, build_wheels, dry_run=False): with github.login() as gh: for repo in gh.repositories_by(org): for branch in repo.branches(): + if not is_main_branch_bot_branch(branch): + continue main_branch_bot.delay( org, repo.name, branch.name, build_wheels, dry_run )