Skip to content

Commit

Permalink
bot (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten authored Jan 16, 2025
1 parent 3afcff2 commit b2f941b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions emci/bot/bump_recipes_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,16 @@ def empty_context_manager():
prs_id = [line.split()[0] for line in prs if line]
prs_packages = [line.split()[2] for line in prs if line]

# Merge PRs if possible
for pr,pr_pkg in zip(prs_id, prs_packages):
# get the recipe dir
recipe_dir = recipe_name_to_recipe_dir.get(pr_pkg)
try_to_merge_pr(pr, recipe_dir=recipe_dir)
# Merge PRs if possible (only for main atm)
if pr_target_branch == "main":
for pr,pr_pkg in zip(prs_id, prs_packages):
# get the recipe dir
recipe_dir = recipe_name_to_recipe_dir.get(pr_pkg)

try:
try_to_merge_pr(pr, recipe_dir=recipe_dir)
except Exception as e:
print(f"Error in {pr}: {e}")

# only recipes for which there is no opened PR
all_recipes = [recipe for recipe in all_recipes if recipe.name not in prs_packages]
Expand Down

0 comments on commit b2f941b

Please sign in to comment.