Skip to content

feat: added branch flag to deploy command - #306

Open
DriesDelanghe wants to merge 4 commits into
baloise:masterfrom
DriesDelanghe:feature/specify-pr-branch
Open

feat: added branch flag to deploy command#306
DriesDelanghe wants to merge 4 commits into
baloise:masterfrom
DriesDelanghe:feature/specify-pr-branch

Conversation

@DriesDelanghe

Copy link
Copy Markdown

Added a --branch flag to the deploy command

PR for issue #305

Comment thread docs/commands/deploy.md Outdated
Comment thread docs/commands/deploy.md Outdated
Comment thread gitopscli/git_api/git_repo.py
DriesDelanghe and others added 3 commits September 9, 2026 10:26
Co-authored-by: Christian Siegel <christian.siegel@gmx.net>
Co-authored-by: Christian Siegel <christian.siegel@gmx.net>
except GitError as ex:
raise GitOpsException(f"Error checking out branch '{branch}'.") from ex

def checkout_or_create_branch(self, branch: str) -> None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: name does not match anymore. How about clone_or_create, ensure_clone? Or add the whole functionality to clone and control with disabled by default create=False flag.

except GitError as ex:
raise GitOpsException(f"Error creating new branch '{branch}'.") from ex

def checkout(self, branch: str) -> None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants