Skip to content

docs: rename 'Merge Requirements Checklist' to 'Merge Gate'#24

Merged
CybotTM merged 2 commits into
mainfrom
fix/merge-gate-naming
Apr 18, 2026
Merged

docs: rename 'Merge Requirements Checklist' to 'Merge Gate'#24
CybotTM merged 2 commits into
mainfrom
fix/merge-gate-naming

Conversation

@CybotTM

@CybotTM CybotTM commented Apr 18, 2026

Copy link
Copy Markdown
Member

Summary

SKILL.md's Critical Rule 2 tells readers to "run the merge gate in `references/pull-request-workflow.md`", but the reference had no section literally titled "Merge Gate" — it was called "Merge Requirements Checklist". Reviewer flagged the inconsistency on PR #23.

Changes

  • references/pull-request-workflow.md:
    • Section heading renamed: ## Merge Requirements Checklist## Merge Gate
    • Subsection ### Check Programmatically### Merge-Gate Command
    • `gh pr view` query now also fetches `reviewThreads`; merge-ready criteria spelled out inline (reviewDecision APPROVED + mergeStateStatus CLEAN + mergeable MERGEABLE + all checks SUCCESS + all threads isResolved)
    • Cross-link added to `references/claude-code-hooks.md` `merge-gate.sh` hook for automated enforcement

Why

Terminology consistency. The Critical Rules, the hooks reference, and the gate check now all use the same name.

Test plan

  • `scripts/validate-skill.sh` passes (SKILL.md 482 words)
  • Cross-links resolve to existing sections
  • No breaking changes to surrounding sections

SKILL.md Critical Rule 2 tells readers to 'run the merge gate in
references/pull-request-workflow.md' but the reference had no section
literally titled 'Merge Gate' — it was called 'Merge Requirements
Checklist'. Reviewer flagged the inconsistency on PR #23.

Renames the section to 'Merge Gate', retitles the inline check to
'Merge-Gate Command', adds reviewThreads to the gh pr view query and
the isResolved-all-true criterion (making the gate behavior match the
claude-code-hooks merge-gate.sh script), and cross-links that script
for automated enforcement.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings April 18, 2026 09:28
@github-actions

github-actions Bot commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the pull request workflow documentation by introducing a "Merge Gate" section, refining the pre-merge checklist, and providing a command to programmatically verify merge readiness. Feedback was provided regarding the gh CLI command syntax, specifically noting that leading spaces in the multi-line JSON field list will cause execution errors and that the reviewThreads property is a direct array rather than being nested under a nodes key.

Comment thread skills/git-workflow/references/pull-request-workflow.md Outdated
Comment thread skills/git-workflow/references/pull-request-workflow.md Outdated

Copilot AI 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.

Pull request overview

This PR resolves terminology drift in the git-workflow skill docs by renaming the “Merge Requirements Checklist” section to “Merge Gate”, aligning with references from SKILL.md and related hook documentation.

Changes:

  • Renamed section heading to ## Merge Gate and updated related subsection naming.
  • Expanded the gh pr view JSON fields to include reviewThreads and documented merge-ready criteria inline.
  • Added a cross-reference to the merge-gate.sh enforcement hook recipe in references/claude-code-hooks.md.

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

Comment thread skills/git-workflow/references/pull-request-workflow.md Outdated
Comment thread skills/git-workflow/references/pull-request-workflow.md Outdated
Four reviewer findings on PR #24:

1. Gemini: '--json' expects a single comma-separated string; the
   backslash-newline-indent formatting inserted spaces around commas,
   making 'reviewDecision, mergeStateStatus' get parsed as two args
   instead of one field list. Flattened to a single line.

2. Gemini: 'gh pr view --json reviewThreads' flattens the GraphQL
   response — the gh CLI returns reviewThreads as a direct array, not
   wrapped in {nodes: [...]}. Corrected the jq criterion from
   '.reviewThreads.nodes[].isResolved' to '.reviewThreads[].isResolved'.

3. Copilot: section said 'runs this same command via a PreToolUse hook
   and denies gh pr merge calls that don't clear every gate', but the
   merge-gate.sh script only checks reviewDecision, mergeStateStatus,
   and unresolved thread count — not statusCheckRollup, annotations, or
   signed commits. Softened the claim to 'runtime-checkable subset' and
   explicitly calls out what the hook doesn't cover (annotations
   require commit-level API, signed commits rely on branch protection).

4. Copilot: 'Single command that surfaces every gate input' wording was
   misleading because a second command follows for CI annotations.
   Restructured into a primary PR-level gate + a separate commit-level
   annotation check, explaining why the split exists.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@CybotTM CybotTM merged commit f24344a into main Apr 18, 2026
11 checks passed
@CybotTM CybotTM deleted the fix/merge-gate-naming branch April 18, 2026 10:12
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.

2 participants