Skip to content

feat(cli): add --local flag to skip push and PR creation#90

Merged
andoniaf merged 3 commits intonew-productfrom
optional-PR-creation
Apr 8, 2026
Merged

feat(cli): add --local flag to skip push and PR creation#90
andoniaf merged 3 commits intonew-productfrom
optional-PR-creation

Conversation

@andoniaf
Copy link
Copy Markdown
Member

@andoniaf andoniaf commented Feb 2, 2026

Summary

  • Add --local option to the create_check command that keeps all changes local without pushing to remote or creating a PR
  • This allows for further local validation before pushing

Changes

When --local is used:

  • Stage 6 (PR Creation) is skipped with a log message
  • Final results show the working directory and instructions for manual push/PR creation
  • Warning is shown if --cleanup-worktree is also used (since changes haven't been pushed)

Test plan

  • Run without --local flag → Push and PR creation happen (existing behavior)
  • Run with --local flag → All stages 1-5 complete, no push/PR, shows manual commands
  • Run with --local --cleanup-worktree → Shows warning about unpushed changes before cleanup
  • Verify the branch exists locally with git branch after running with --local

Add a --local option to the create_check command that keeps all changes
local without pushing to remote or creating a PR. This allows for
further local validation before pushing.

When --local is used:
- Stage 6 (PR Creation) is skipped
- Final results show instructions for manual push/PR creation
- Warning is shown if --cleanup-worktree is also used
@andoniaf andoniaf changed the base branch from main to new-product February 2, 2026 09:18
Add a comprehensive CLI options table documenting all available flags
including --local, --no-worktree, and --cleanup-worktree.
Using both flags together would delete the worktree before changes
are pushed, causing the user to lose their work. This adds upfront
validation to prevent this invalid combination.

Also updates the README --local example for consistency with other
examples that show the branch option.
@andoniaf andoniaf marked this pull request as ready for review April 8, 2026 14:21
@andoniaf andoniaf merged commit 948a8eb into new-product Apr 8, 2026
@andoniaf andoniaf deleted the optional-PR-creation branch April 8, 2026 14:21
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.

1 participant