feat: adk branch create --env flag to specify source env for new branch#56
Merged
bill-parker merged 8 commits intomainfrom Apr 1, 2026
Merged
feat: adk branch create --env flag to specify source env for new branch#56bill-parker merged 8 commits intomainfrom
bill-parker merged 8 commits intomainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
Coverage Report
Changed file coverage
|
jsanter27
approved these changes
Mar 31, 2026
8 tasks
AaronForinton
added a commit
that referenced
this pull request
Apr 14, 2026
…ch (#57) ## Summary This PR is related to #56 ## Motivation <!-- Why is this change needed? Link to an issue if applicable. --> Closes #<!-- issue number --> ## Changes <!-- Bullet list of the key changes. Focus on *what* changed, not *how*. --> - ## Test strategy <!-- How did you verify this works? Check all that apply. --> - [ ] Added/updated unit tests - [ ] Manual CLI testing (`poly <command>`) - [ ] Tested against a live Agent Studio project - [ ] N/A (docs, config, or trivial change) ## Checklist - [ ] `ruff check .` and `ruff format --check .` pass - [ ] `pytest` passes - [ ] No breaking changes to the `poly` CLI interface (or migration path documented) - [ ] Commit messages follow [conventional commits](https://www.conventionalcommits.org/) ## Screenshots / Logs <!-- Optional: paste terminal output, screenshots, or before/after diffs if helpful. --> --------- Co-authored-by: Ruari Phipps <ruari@poly-ai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
--envflag topoly branch createthat sources a new branch from a live or pre-release deployment snapshot instead of sandbox main.Additional points:
sandboxas env arg will default to existing behaviour (sandbox being the default 'base').--forceflag will force overwrite of any local changes onmain(restrictions still apply for creating new branch from main only).Motivation
The motivation is to facilitate hotfixes to main live environment, bypassing any subsequent changes in testing environments.
This should be used with caution and usual protocol to be followed with pushing the change.
Changes
--env/--environment(choices: sandbox, pre-release, live) and--force/-ftobranch createTest strategy
poly <command>)Checklist
ruff check .andruff format --check .passpytestpassespolyCLI interface (or migration path documented)