Skip to content

Add stck submit command#22

Merged
brdv merged 1 commit intomainfrom
add-submit-command
Feb 11, 2026
Merged

Add stck submit command#22
brdv merged 1 commit intomainfrom
add-submit-command

Conversation

@brdv
Copy link
Owner

@brdv brdv commented Feb 11, 2026

Summary

Add stck submit to create a PR for the current branch when one is missing.

This closes the dogfooding gap where users had to run manual gh pr create ... after adding commits.

Changelist

  • src/cli.rs
    • Added submit subcommand: stck submit [--base <branch>].
    • Behavior:
      • rejects default branch submission,
      • ensures upstream exists (pushes -u when missing),
      • no-ops if PR already exists,
      • creates PR for current branch with optional base override.
    • Updated stck new no-commit guidance to recommend stck submit --base <parent>.
  • tests/cli_skeleton.rs
    • Help output now asserts submit command is listed.
    • Updated no-commit guidance expectations.
    • Added tests:
      • submit_creates_pr_with_base_override
      • submit_defaults_base_to_default_branch
      • submit_noops_when_pr_exists
      • submit_rejects_default_branch

Validation

  • cargo fmt --all
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

@brdv brdv merged commit 718e424 into main Feb 11, 2026
1 check passed
@brdv brdv deleted the add-submit-command branch February 11, 2026 11:59
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