Skip to content

docs: document PR stacking workflow and branch naming - #191

Open
laserkelvin wants to merge 2 commits into
NVIDIA:mainfrom
laserkelvin:stacking-prep
Open

docs: document PR stacking workflow and branch naming#191
laserkelvin wants to merge 2 commits into
NVIDIA:mainfrom
laserkelvin:stacking-prep

Conversation

@laserkelvin

Copy link
Copy Markdown
Collaborator

ALCHEMI Toolkit Pull Request

Description

Documents the repository's PR stacking workflow for both human contributors and coding agents.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Performance improvement
  • Documentation update
  • Refactoring (no functional changes)
  • CI/CD or infrastructure change

Related Issues

N/A

Changes Made

  • AGENTS.md: agents stacking PRs should name branches <github handle>/<shared-stack-topic>/<layer> and may use either the gh stack commands in GitHub CLI or the GitHub website.
  • CONTRIBUTING.md: new "Stacking Pull Requests" section covering the same-repository requirement (cross-fork stacks are not supported), the branch naming scheme, both workflows, merge/retarget behavior, and links to GitHub's stacked PR documentation.

Testing

Documentation-only change; verified with markdownlint through the pre-commit hooks.

  • Unit tests pass locally (make pytest)
  • Linting passes (make lint)
  • New tests added for new functionality meets coverage expectations?

Checklist

  • I have read and understand the Contributing Guidelines
  • I have updated the CHANGELOG.md
  • I have performed a self-review of my code
  • I have added docstrings to new functions/classes
  • I have updated the documentation (if applicable)

Additional Notes

CHANGELOG.md intentionally not updated: this is contributor-process documentation, not a package change.

Tip

This repository uses Greptile, an AI code review service, to help conduct
pull request reviews. We encourage contributors to read and consider suggestions
made by Greptile, but note that human maintainers will provide the necessary
reviews for merging: Greptile's comments are not a qualitative judgement
of your code, nor is it an indication that the PR will be accepted/rejected.
We encourage the use of emoji reactions to Greptile comments, depending on
their usefulness and accuracy.

Add a stacking bullet to AGENTS.md using the
`<github handle>/<shared-stack-topic>/<layer>` branch scheme, and a
"Stacking Pull Requests" section to CONTRIBUTING.md covering the
same-repository requirement and the two supported workflows: the
`gh stack` commands in GitHub CLI and the GitHub website.

Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Retrigger

The documentation-only PR appears safe to merge.

Findings

  1. P2 Missing CLI extension prerequisite

Summary

  • Defines a consistent branch naming convention for stacked changes.
  • Explains the same-repository and write-access requirements.
  • Documents both GitHub CLI and website workflows, including merge and retarget behavior.
  • Adds the github/gh-stack extension prerequisite, fully addressing the previous review finding.

Reviews (2) · Last reviewed commit: "docs: note gh-stack extension prerequisi..."

Comment thread CONTRIBUTING.md Outdated

There are two ways to build a stack, both documented by GitHub:

- With the `gh stack` commands in GitHub CLI (see the

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.

P2 Missing CLI extension prerequisite

The workflow begins with gh stack init, but stack is not included in the standard GitHub CLI. Contributors must first install the github/gh-stack extension; otherwise, these commands fail as unknown. Please document gh extension install github/gh-stack before this workflow and add the same prerequisite to the corresponding AGENTS.md guidance.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

The `gh stack` commands ship as the `github/gh-stack` GitHub CLI extension
rather than built-in commands; note the conditional install step in both
AGENTS.md and CONTRIBUTING.md. Addresses Greptile review feedback.

Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
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