Skip to content

feat(submit): add --push-only flag#25

Merged
boneskull merged 1 commit intomainfrom
submit-no-pr
Feb 4, 2026
Merged

feat(submit): add --push-only flag#25
boneskull merged 1 commit intomainfrom
submit-no-pr

Conversation

@boneskull
Copy link
Copy Markdown
Owner

Adds a new --push-only flag to gh stack submit that skips
Phase 3 (PR creation/update) and only performs cascade + push.

Useful when you want to push branches without creating or updating PRs.

  • Errors if combined with --update-only or --web (both affect PRs)
  • Flag is persisted in cascade state for conflict recovery via continue

Adds a new `--push-only` flag to `gh stack submit` that skips
Phase 3 (PR creation/update) and only performs cascade + push.

Useful when you want to push branches without creating or updating PRs.

- Errors if combined with `--update-only` or `--web` (both affect PRs)
- Flag is persisted in cascade state for conflict recovery via `continue`
Copilot AI review requested due to automatic review settings February 4, 2026 05:15
@boneskull
Copy link
Copy Markdown
Owner Author

boneskull commented Feb 4, 2026

Stack


Managed by gh-stack

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new --push-only flag to gh stack submit to allow running cascade + push while skipping the PR creation/update phase, including persistence across conflict recovery via gh stack continue.

Changes:

  • Added --push-only flag to submit with validation against --update-only and --web.
  • Persisted PushOnly in internal/state.CascadeState and wired it through cascade/continue flows.
  • Added unit + e2e coverage for state persistence and --push-only behavior/flag conflicts.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
cmd/submit.go Adds flag, validates conflicts, and skips PR phase when pushOnly is set.
cmd/cascade.go Threads pushOnly through cascade state persistence on conflict.
cmd/continue.go Restores pushOnly from persisted state when continuing a submit.
cmd/sync.go Updates cascade helper call signature after adding pushOnly.
internal/state/state.go Adds PushOnly to persisted cascade/submit state JSON.
internal/state/state_test.go Unit test coverage for PushOnly state save/load.
e2e/submit_test.go E2E coverage for --push-only output and conflicting flags.
README.md Documents the new --push-only submit flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@boneskull boneskull merged commit c14dabb into main Feb 4, 2026
14 checks passed
@boneskull boneskull deleted the submit-no-pr branch February 4, 2026 05:23
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