Skip to content

Add agent instruction: do not create stacked pull requests#107778

Open
alexey-milovidov wants to merge 1 commit into
masterfrom
docs/no-stacked-prs
Open

Add agent instruction: do not create stacked pull requests#107778
alexey-milovidov wants to merge 1 commit into
masterfrom
docs/no-stacked-prs

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Adds a rule to .claude/CLAUDE.md instructing the agent not to create stacked pull requests. Every pull request must target master directly (or, in rare cases, a release branch), never another feature branch.

Motivation: the PR CI workflow (.github/workflows/pull_request.yml) only triggers for pull requests whose base is master, and release branches are covered by their own workflows. A pull request stacked on top of another feature branch therefore receives no checks at all, which is easy to do by accident and confusing to diagnose.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Pull requests must target `master` directly (or, in rare cases, a
release branch), never another feature branch. CI only runs for pull
requests whose base is `master` or a release branch, so a pull request
stacked on another feature branch gets no checks.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@clickhouse-gh

clickhouse-gh Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4d4cbcf]

Summary:


AI Review

Summary

This PR adds an agent instruction to .claude/CLAUDE.md prohibiting stacked pull requests and explaining that PR CI runs only for master or release-branch bases. The instruction is consistent with the existing branch/PR guidance, the Not for changelog metadata is appropriate for an agent-instructions-only change, and I found no issues requiring inline review comments.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant