Skip to content

Commit

Permalink
Don't create tasks for unsupported branches
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 21, 2023
1 parent 8011e44 commit 0525c46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/oca_github_bot/tasks/main_branch_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 0525c46

Please sign in to comment.