Skip to content

Commit

Permalink
Ensure integration queue branch is deleted as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Jan 26, 2024
1 parent fd04a4b commit 6755b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bert_e/workflow/gitwaterflow/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,13 @@ def delete(self):
"""Delete the queues entirely."""

for branch in self._queues.values():
# TODO: Review if QueueIntegrationBranch should be removed as well
queue: QueueBranch = branch[QueueBranch]
queue.dst_branch.checkout()
queue.remove(do_push=True)
queue_integration: QueueIntegrationBranch | None = branch.get(
QueueIntegrationBranch)
if queue_integration:
queue_integration.remove(do_push=True)


class BranchCascade(object):
Expand Down

0 comments on commit 6755b41

Please sign in to comment.