Skip to content

feat: add repo_branch parameter support#21

Open
xaviedoanhduy wants to merge 1 commit intomainfrom
feat/repo-branch-parameter
Open

feat: add repo_branch parameter support#21
xaviedoanhduy wants to merge 1 commit intomainfrom
feat/repo-branch-parameter

Conversation

@xaviedoanhduy
Copy link
Copy Markdown
Member

Summary

  • Add --repo-branch CLI option to deploy update and deploy configure commands
  • Add deploy_repo_branch input to action.yml so GitHub Actions workflows can target a specific branch
  • repo_branch can also be set in deploy.yml config file

Behaviour

  • configure: passes --branch <branch> to git clone when repo_branch is set
  • update: runs git fetch origin && git checkout <branch> && git pull instead of bare git pull
  • CLI flag takes precedence over deploy.yml config (same pattern as all other options)

Test plan

  • All 22 existing tests pass (uv run pytest)
  • deploy update --help and deploy configure --help show --repo-branch option
  • Manual test against a real server with a non-default branch

Closes #17

🤖 Generated with Claude Code

Add --repo-branch CLI option and deploy_repo_branch action input so
callers can deploy a specific branch instead of the repository default.

- config.py: add repo_branch to resolve_options
- update: fetch + checkout + pull specified branch when repo_branch set
- configure: pass --branch to git clone when repo_branch is set
- action.yml: expose deploy_repo_branch input, append to deploy.yml

Closes #17

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

support for new parameter: repo_branch

1 participant