Skip to content

docs(skill): document mergify stack edit for mid-stack amends#1385

Open
jd wants to merge 1 commit intomainfrom
devs/jd/docs/stack-skill-edit/document-mergify-stack-edit-mid-stack-amends--668a381e
Open

docs(skill): document mergify stack edit for mid-stack amends#1385
jd wants to merge 1 commit intomainfrom
devs/jd/docs/stack-skill-edit/document-mergify-stack-edit-mid-stack-amends--668a381e

Conversation

@jd
Copy link
Copy Markdown
Member

@jd jd commented May 7, 2026

The "Mid-stack fixes" recipe in the mergify-stack skill pointed at
git rebase -i, which is unactionable in agent contexts (no
interactive editor). The repo already ships mergify stack edit <SHA>
which does exactly the non-interactive pick → edit rebase the agent
needed — agents have been reinventing it as
GIT_SEQUENCE_EDITOR='sed -i ... pick → edit' git rebase -i because
the skill never named the command.

Update the Core Conventions bullet, add Common Mistakes rows for both
the edit case and the broader GIT_SEQUENCE_EDITOR antipattern, list
mergify stack edit X in the Commands block, and swap the
worktree-modifying-operations checklist from git rebase -i to
mergify stack edit.

Copilot AI review requested due to automatic review settings May 7, 2026 13:57
@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 7, 2026 13:57 Failure
@jd jd temporarily deployed to func-tests-live May 7, 2026 13:57 — with GitHub Actions Inactive
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 7, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by>=2
This rule is failing.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success=ci-gate

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the mergify-stack skill documentation to recommend mergify stack edit <commit> for mid-stack amends instead of git rebase -i, making the workflow non-interactive and suitable for agent/LLM sessions.

Changes:

  • Replaces the “Mid-stack fixes” guidance from git rebase -i to mergify stack edit <commit> + amend + continue.
  • Adds “Common Mistakes” entries discouraging both git rebase -i for mid-stack amends and GIT_SEQUENCE_EDITOR=... git rebase -i workarounds.
  • Adds mergify stack edit to the command list and updates the worktree-modifying-operations checklist accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/mergify-stack/SKILL.md Outdated
Comment thread skills/mergify-stack/SKILL.md Outdated
Comment thread skills/mergify-stack/SKILL.md Outdated
Comment thread skills/mergify-stack/SKILL.md Outdated
@mergify mergify Bot requested a review from a team May 7, 2026 14:11
@jd jd marked this pull request as ready for review May 7, 2026 15:00
The "Mid-stack fixes" recipe in the mergify-stack skill pointed at
`git rebase -i`, which is unactionable in agent contexts (no
interactive editor). The repo already ships `mergify stack edit <SHA>`
which does exactly the non-interactive `pick → edit` rebase the agent
needed — agents have been reinventing it as
`GIT_SEQUENCE_EDITOR='sed -i ... pick → edit' git rebase -i` because
the skill never named the command.

Update the Core Conventions bullet, add Common Mistakes rows for both
the edit case and the broader `GIT_SEQUENCE_EDITOR` antipattern, list
`mergify stack edit X` in the Commands block, and swap the
worktree-modifying-operations checklist from `git rebase -i` to
`mergify stack edit`.

Change-Id: I668a381e83b594e36c8f2e8e7ed880e83aab9d56
@jd jd force-pushed the devs/jd/docs/stack-skill-edit/document-mergify-stack-edit-mid-stack-amends--668a381e branch from d1219d9 to ac79039 Compare May 7, 2026 15:30
@jd
Copy link
Copy Markdown
Member Author

jd commented May 7, 2026

Revision history

# Type Changes Reason Date
1 initial d1219d9 2026-05-07 15:30 UTC
2 content d1219d9 → ac79039 (raw) 2026-05-07 15:30 UTC

@jd jd temporarily deployed to func-tests-live May 7, 2026 15:31 — with GitHub Actions Inactive
@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 7, 2026 15:31 Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants