Skip to content

feat(gh): add gh-stack extension - #2086

Merged
shunkakinoki merged 1 commit into
mainfrom
feat/add-gh-stack
Jul 16, 2026
Merged

feat(gh): add gh-stack extension#2086
shunkakinoki merged 1 commit into
mainfrom
feat/add-gh-stack

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add gh-stack (stacked PRs) to declarative gh extensions in home-manager

Test plan

  • make switch activates successfully
  • gh extension list shows gh-stack

Summary by cubic

Add gh-stack to the declarative gh extensions in home-manager. This enables creating and managing stacked PRs from the GitHub CLI.

Written for commit 402330c. Summary will update on new commits.

Review in cubic

@indent-zero

indent-zero Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
PR Summary

Adds the gh-stack GitHub CLI extension (stacked PRs) to the declarative programs.gh.extensions list in home-manager so it is installed alongside gh-markdown-preview on every host after make switch. This exposes the gh stack ... subcommand across all configurations that consume this module.

  • home-manager/programs/gh/default.nix: append gh-stack to programs.gh.extensions ([ gh-markdown-preview gh-stack ]); no other config changed.

Issues

No issues found.

CI Checks

Waiting for CI checks...

@cursor

cursor Bot commented Jul 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@shunkakinoki
shunkakinoki merged commit 797139f into main Jul 16, 2026
23 of 27 checks passed
@shunkakinoki
shunkakinoki deleted the feat/add-gh-stack branch July 16, 2026 23:55
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ca8a9700-8311-4f3f-8fce-28f8d3cc1d16

📥 Commits

Reviewing files that changed from the base of the PR and between 4e2b2f8 and 402330c.

📒 Files selected for processing (1)
  • home-manager/programs/gh/default.nix

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added support for the gh-stack extension in the GitHub CLI configuration.

Walkthrough

The GitHub CLI Home Manager configuration now installs gh-stack alongside gh-markdown-preview.

Changes

GitHub CLI configuration

Layer / File(s) Summary
Add gh-stack extension
home-manager/programs/gh/default.nix
The programs.gh.extensions list now includes gh-stack alongside gh-markdown-preview.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A bunny found a stack to track,
And tucked it in the CLI pack.
With markdown hops and gh-stack cheer,
The config grew one tool this year.
Nibble, commit, and leap! 🐇

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-gh-stack

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds the gh-stack extension to the GitHub CLI (gh) configuration in Home Manager. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@mesa-dot-dev mesa-dot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Performed full review of 4e2b2f8...402330c

Analysis

• Hard dependency on pkgs.gh-stack availability in pinned nixpkgs revision—if the package doesn't exist, evaluation will fail immediately and break users on certain pins

• No cross-version compatibility safeguards—if supporting multiple nixpkgs versions/channels, lack of conditional inclusion pattern creates brittle dependency chain

• Testing limited to installation visibility without functional verification—no validation that the gh-stack command actually executes properly after installation

Tip

Help

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

0 files reviewed | 1 comments | Edit Agent SettingsRead Docs

programs.gh = {
enable = true;
extensions = with pkgs; [ gh-markdown-preview ];
extensions = with pkgs; [ gh-markdown-preview gh-stack ];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Medium

Before merging, verify that pkgs.gh-stack exists in your pinned nixpkgs revision. If the package is not available in the current pin, this will cause an evaluation error for all users during home-manager switch. You can test this by running a local build/switch with your current nixpkgs pin.

Agent: 🏛 Architecture • Fix in Cursor • Fix in Claude

Prompt for Agent
Task: Address review feedback left on GitHub.
Repository: shunkakinoki/dotfiles#2086
File: home-manager/programs/gh/default.nix#L5
Action: Open this file location in your editor, inspect the highlighted code, and resolve the issue described below.

Feedback:
Before merging, verify that `pkgs.gh-stack` exists in your pinned nixpkgs revision. If the package is not available in the current pin, this will cause an evaluation error for all users during `home-manager switch`. You can test this by running a local build/switch with your current nixpkgs pin.

@mesa-dot-dev

mesa-dot-dev Bot commented Jul 17, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Added the gh-stack extension (stacked PRs) to the declarative GitHub CLI (gh) configuration in Home Manager.

What changed?

  • home-manager/programs/gh/default.nix: Added the gh-stack package to the programs.gh.extensions list.

Test plan

  • make switch activates successfully
  • gh extension list shows gh-stack

Description generated by Mesa. Update settings

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