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: github/gh-stack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.2
Choose a base ref
...
head repository: github/gh-stack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.3
Choose a head ref
  • 13 commits
  • 65 files changed
  • 9 contributors

Commits on Apr 22, 2026

  1. Bump astro in /docs in the npm_and_yarn group across 1 directory (#60)

    Bumps the npm_and_yarn group with 1 update in the /docs directory: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).
    
    
    Updates `astro` from 6.0.8 to 6.1.8
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)
    
    ---
    updated-dependencies:
    - dependency-name: astro
      dependency-version: 6.1.8
      dependency-type: direct:production
      dependency-group: npm_and_yarn
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 22, 2026
    Configuration menu
    Copy the full SHA
    a853a21 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2026

  1. Guard GraphQL PR number conversion against int32 overflow (#56)

    * Initial plan
    
    * fix: validate int range before GraphQL Int conversion
    
    Agent-Logs-Url: https://github.com/github/gh-stack/sessions/dbb2b50f-34fb-4957-ac08-e19c1f96ba41
    
    Co-authored-by: skarim <[email protected]>
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: skarim <[email protected]>
    Copilot and skarim authored Apr 23, 2026
    Configuration menu
    Copy the full SHA
    ad21053 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2026

  1. docs: stack object in pull_request webhooks (#67)

    * Initial plan
    
    * Add CI integration guide documenting stack object in pull_request webhook events
    
    Agent-Logs-Url: https://github.com/github/gh-stack/sessions/cf10db22-af0b-45c3-95d6-de9ef313d624
    
    Co-authored-by: willsmythe <[email protected]>
    
    * clean up webhooks content
    
    * improve workflow code sample
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: willsmythe <[email protected]>
    Co-authored-by: Sameen Karim <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    4 people authored May 4, 2026
    Configuration menu
    Copy the full SHA
    ad56830 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2026

  1. modify command (#72)

    * git primitives for modify cmd
    
    * extract reusable TUI parts
    
    * modify cmd
    
    * recreate stack after modify
    
    * add checks to prevent other modifications while modify is applying
    
    * modify continue for resuming after resolving conflicts
    
    * fix bug with duplicate stack entries after modifying
    
    * reuse conflict resolution help msg from rebase
    
    * additional confirmation before overwriting stack on remote
    
    * fix recreate order of operations
    
    Co-authored-by: Copilot <[email protected]>
    
    * move base commit instead of cherry picking for fold up
    
    * check to ensure we aren't left with zero branches
    
    * unify and dedupe across view and modify tui
    
    * more detailed help instructions
    
    Co-authored-by: Copilot <[email protected]>
    
    * only recommend submit if stack exists on remote
    
    Co-authored-by: Copilot <[email protected]>
    
    * tests for modify tui, apply modifications, submit modifications
    
    * refactor submit for regular and pending modifications
    
    * rename recover to abort
    
    Co-authored-by: Copilot <[email protected]>
    
    * docs for modify cmd
    
    * tui styling updates
    
    * updated tui screenshot
    
    * addressing review comments
    
    * Fix 4 bugs from code review
    
    Bug 1: Move RevParseMap error check before using originalRefs.
    The error from git.RevParseMap() was deferred past iteration of
    originalRefs, which could panic on a nil map.
    
    Bug 2: Differentiate cherry-pick vs rebase conflicts in modify.
    Cherry-pick conflicts don't save state as 'conflict' phase, so
    --continue won't work. Now prints --abort-only instructions for
    cherry-pick conflicts.
    
    Bug 3: Unwind now cleans up branches created by renames.
    After restoring snapshot branches, Unwind deletes renamed branch
    names that don't belong to the original snapshot.
    
    Bug 4: Simplify push message in submit command.
    Changed from 'Pushing N branches to remote...' to 'Pushing to
    remote...' since individual branches may fail.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Fix 7 nit issues from code review
    
    11: Add named constants for phase strings (PhaseApplying, PhaseConflict,
    PhasePendingSubmit) in state.go; replace remaining raw literals in
    state.go CheckStateGuard.
    
    14: Fix bottomLines comment mismatch — listed 3 items but value is 2.
    
    15: Extract magic number 88 to MinWidthForArt constant in header.go.
    
    16: Remove unused stackview import anchor in model.go — the import
    is used via types.go where BranchNode is embedded.
    
    17: Simplify CheckStackLinearity parent resolution — ActiveBaseBranch
    already handles skipping merged branches.
    
    18: Fix rename undo matching any rename — add NewName check so only
    the specific rename being undone is matched.
    
    20: Add TestUndoRename and TestUndoRename_DoesNotAffectOtherRenames
    to validate rename undo behavior.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Make cherry-pick conflicts recoverable via --continue
    
    Previously, cherry-pick conflicts during fold-down operations could only
    be resolved with --abort. Now they save full conflict state (phase,
    conflict type, fold branch/target, remaining branches) to the state file,
    enabling recovery via 'gh stack modify --continue'.
    
    Changes:
    - Add ConflictType field to StateFile (rebase or cherry_pick)
    - Add FoldBranch/FoldTarget fields for cherry-pick context
    - Add CherryPickContinue to git package (cherry-pick --continue)
    - Save cherry-pick conflict state in ApplyPlan with remaining branches
    - ContinueApply handles both rebase and cherry-pick conflicts
    - Unified conflict messaging in cmd/modify.go (both types show --continue)
    - Updated test to verify cherry-pick conflict state is saved correctly
    
    * Apply suggestions from code review
    
    Co-authored-by: Luke Ghenco <[email protected]>
    Co-authored-by: Sameen Karim <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Luke Ghenco <[email protected]>
    4 people authored May 5, 2026
    Configuration menu
    Copy the full SHA
    7a268fc View commit details
    Browse the repository at this point in the history
  2. Bump postcss in /docs in the npm_and_yarn group across 1 directory (#73)

    Bumps the npm_and_yarn group with 1 update in the /docs directory: [postcss](https://github.com/postcss/postcss).
    
    
    Updates `postcss` from 8.5.8 to 8.5.14
    - [Release notes](https://github.com/postcss/postcss/releases)
    - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
    - [Commits](postcss/postcss@8.5.8...8.5.14)
    
    ---
    updated-dependencies:
    - dependency-name: postcss
      dependency-version: 8.5.14
      dependency-type: indirect
      dependency-group: npm_and_yarn
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 5, 2026
    Configuration menu
    Copy the full SHA
    de00856 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2026

  1. docs content updates (#83)

    * update faq content
    
    * clarify auth requirement for cli
    
    * docs on rebase stack button behavior
    
    * update header level
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * clarify TUI acronym
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    skarim and Copilot authored May 7, 2026
    Configuration menu
    Copy the full SHA
    3700f4e View commit details
    Browse the repository at this point in the history

Commits on May 11, 2026

  1. simplify unstack to only target the active stack (#74)

    * rm arg from unstack so it only targets active stack
    
    * fix typo
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    skarim and Copilot authored May 11, 2026
    Configuration menu
    Copy the full SHA
    03fe8ea View commit details
    Browse the repository at this point in the history
  2. run fetch before push operations (#75)

    * run fetch before push operations
    
    * ignore if ref doesn't exist on remote
    
    * rm fetch from link
    
    * more durable fetch by trying all first and falling back to individual fetches
    
    * run fetch before sync
    skarim authored May 11, 2026
    Configuration menu
    Copy the full SHA
    d1e9d14 View commit details
    Browse the repository at this point in the history
  3. open PRs as draft by default (#76)

    * open prs as draft by default
    
    * apply suggested docs updates from code review
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    skarim and Copilot authored May 11, 2026
    Configuration menu
    Copy the full SHA
    1333040 View commit details
    Browse the repository at this point in the history
  4. use PR template when opening PRs (#77)

    * use pr template when opening prs
    
    * add a helper to clearly distinguish between filesystem errors and actual test failures
    skarim authored May 11, 2026
    Configuration menu
    Copy the full SHA
    b71b10c View commit details
    Browse the repository at this point in the history
  5. Remove unused GraphQL fields to reduce API rate limit consumption (#78)

    Audit all 7 GraphQL operations and remove fields that are fetched but
    never used in Go code:
    
    - Remove FindAnyPRForBranch: entire function is dead code (zero call sites)
    - FindPRForBranch: remove title, state, headRefName, merged (4 fields)
    - CreatePR: remove title, state, headRefName, baseRefName, isDraft (5 fields)
    - FindPRDetailsForBranch: remove id, title, headRefName, baseRefName,
      comments { totalCount } (4 fields + 1 nested object)
    - FindPRByNumber: remove title (1 field)
    
    Also remove Title from PullRequest struct, and Title + CommentsCount
    from PRDetails struct since they are no longer populated or read.
    
    Total: ~15 unused fields removed across 5 queries, 1 dead query deleted,
    and 1 unnecessary nested object (comments) eliminated.
    
    Co-authored-by: Copilot <[email protected]>
    skarim and Copilot authored May 11, 2026
    Configuration menu
    Copy the full SHA
    9d2c442 View commit details
    Browse the repository at this point in the history
  6. Optimize view/modify TUI load time with parallel fetching (#79)

    - Deduplicate API calls: syncStackPRs now returns PRDetails for
      LoadBranchNodes to reuse, eliminating redundant FindPRDetailsForBranch calls
    - Parallelize API calls in syncStackPRs (capped at 6 concurrent requests)
    - Parallelize git operations in LoadBranchNodes (capped at 4 concurrent)
    - Show "Loading stack..." indicator for interactive sessions
    
    Co-authored-by: Copilot <[email protected]>
    skarim and Copilot authored May 11, 2026
    Configuration menu
    Copy the full SHA
    8cddfd4 View commit details
    Browse the repository at this point in the history
  7. improve agent friendliness of view --json (#80)

    * return exit codes instead of interactive prompt for view json mode
    
    * increment skill file version
    skarim authored May 11, 2026
    Configuration menu
    Copy the full SHA
    8dbd7c6 View commit details
    Browse the repository at this point in the history
Loading