Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: boneskull/gh-stack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: issue-79
Choose a base ref
...
head repository: boneskull/gh-stack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 34 files changed
  • 4 contributors

Commits on Apr 16, 2026

  1. chore(deps): update step-security/harden-runner action to v2.18.0 (#93)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 16, 2026
    Configuration menu
    Copy the full SHA
    4e39826 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2026

  1. Configuration menu
    Copy the full SHA
    da5df4f View commit details
    Browse the repository at this point in the history
  2. fix(cmd): only push stack branches when submit will touch PRs (#89)

    fix(cmd): defer submit push until PR intent is known
    
    Submit used to force-push every stack branch before the PR phase, so
    branches were published even when the user skipped opening a PR.
    
    Plan each branch first (GitHub adopt check, prompts, --update-only),
    then push only branches that will get PR work or must exist on the
    remote as a base for a descendant PR. PR execution reuses the plan.
    
    Add a unit test for ancestor push propagation on skip.
    
    Co-authored-by: Cursor Agent <cursoragent@cursor.com>
    boneskull and cursoragent authored Apr 18, 2026
    Configuration menu
    Copy the full SHA
    96fb5b9 View commit details
    Browse the repository at this point in the history
  3. fix: rename cascade to restack more generally (#94)

    `cascade` is still retained as an alias of `restack`.
    
    **WARNING**: This may invalidate in-progress cascade operations if you happen to upgrade `gh-stack` in the middle of one. Don't do that.
    boneskull authored Apr 18, 2026
    Configuration menu
    Copy the full SHA
    115ce65 View commit details
    Browse the repository at this point in the history
  4. chore(main): release 0.6.3 (#86)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Apr 18, 2026
    Configuration menu
    Copy the full SHA
    3121da1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b93be0b View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2026

  1. fix!: normalize flags (#97)

    BREAKING CHANGE: Some flags have changed. `restack`: `--only` is now `-c, --current`; `submit`: `--current-only` is now `-c, --current`, `--update-only` is now `-u, --update`, `--push-only` is now `-s, --skip-prs`, removed `-w` shorthand from `--web`.
    
    Other options have had shorthands added; see [README.md](https://github.com/boneskull/gh-stack/blob/main/README.md) for details.
    boneskull authored Apr 19, 2026
    Configuration menu
    Copy the full SHA
    91a896d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ea4291 View commit details
    Browse the repository at this point in the history
  3. chore(ci): revert 7ea4291

    boneskull committed Apr 19, 2026
    Configuration menu
    Copy the full SHA
    709f2e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2026

  1. fix(submit): only prompt to publish draft when base transitions to tr…

    …unk (#100)
    
    * fix(submit): only prompt to publish draft when base transitions to trunk
    
    Resolves #95. Previously, `gh stack submit` would prompt to publish a
    draft PR every time it ran, as long as the PR was a draft and targeted
    trunk. This got annoying fast.
    
    The fix adds a `stackPRBase` key to `.git/config` (per branch) that
    persists the last-known remote base after each successful submit run.
    The publish prompt now fires only when the stored base differs from
    trunk — i.e., the PR's base is genuinely moving to trunk for the first
    time since the last submit.
    
    Cleanup is consistent: `unlink`, `orphan`, and sync's merged-branch
    handlers all clear `stackPRBase` alongside the other per-branch config
    keys. Sync's retarget-to-trunk path also persists the new base so
    subsequent submit runs don't re-prompt.
    
    * fix(submit): check trunk transition before persisting new PR base
    
    The `prActionUpdate` path in `executePRDecisions` was calling
    `SetPRBase` before `maybeMarkPRReady`, which meant
    `isTransitionToTrunk` always read the value we had just written
    (trunk) and returned false. The publish-draft prompt was therefore
    silently suppressed for all existing PRs transitioning to trunk.
    
    Fix: call `maybeMarkPRReady` first, then persist the new base.
    While here, move `GenerateAndPostStackComment` inside the success
    branch so it doesn't run when `UpdatePRBase` fails.
    
    Add `TestIsTransitionToTrunkOrderingInvariant` to document and
    guard the required call order.
    boneskull authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    c47ca16 View commit details
    Browse the repository at this point in the history
  2. chore(main): release 1.0.0 (#101)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    17b3ac5 View commit details
    Browse the repository at this point in the history
  3. chore(deps): update step-security/harden-runner action to v2.19.0 (#102)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    3d7b65b View commit details
    Browse the repository at this point in the history
Loading