[docs] Document GitButler branching/PR workflow in AGENTS.md#4720
[docs] Document GitButler branching/PR workflow in AGENTS.md#4720jp-agenta wants to merge 1 commit into
Conversation
…ratchpad Document the but-CLI lifecycle (status/branch/commit/absorb/push), stacked-PR flow via gh, and the hard-won gotchas (linear-history requirement, absorb over hand-amend). Ignore the local .gitbutler.lanes.md tracking file.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a "Branching and PRs with GitButler" section to ChangesGitButler Tooling Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Pull request overview
Adds contributor-facing guidance for working in GitButler workspace mode, documenting an opinionated but CLI workflow and common pitfalls, and ensures a local GitButler lane scratchpad file isn’t accidentally committed.
Changes:
- Document the GitButler lane/stack workflow (
but status/branch/commit/absorb/push) and a stacked-PR flow usinggh pr create --base <parent>. - Capture key GitButler gotchas (linear history expectations,
but pullbehavior, oplog snapshot/restore recovery). - Ignore
.gitbutler.lanes.mdin.gitignore.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
AGENTS.md |
Adds a new “Branching and PRs with GitButler” section describing a recommended workflow and recovery guidance. |
.gitignore |
Ignores a local GitButler lane-tracking scratchpad file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mmabrouk
left a comment
There was a problem hiding this comment.
I am not sure this the right way to do it.
I would rather instead:
- Have a small note: this current trunk might be using gitbutler. In that case the current branch `gitbutler/workspace. If that is the case please check local skills and memories to how to deal with gitbuterl
And then have the rest in your local skills / memories
|
Global Agents.md tokens are very valuable, we should only have important things in global context |
Context
The repo can run in GitButler workspace mode, but AGENTS.md had no guidance on using the
butCLI. This led to relearning the same gotchas (force-push semantics, stacked PRs, when commits get swept into the wrong lane).Changes
butlifecycle (status/branch/commit/absorb/push), stacked-PR flow viagh pr create --base <parent>, and the hard-won gotchas (linear-history requirement,absorbover hand-amend,but pullrebases on main not the branch's upstream, oplog snapshot/restore for recovery)..gitbutler.lanes.mdlane-tracking scratchpad in.gitignore.Tests / notes
🤖 Generated with Claude Code