Skip to content

[chore](pr-template) Adopt a per-type PR template and use it for commit messages - #70175

Merged
morningman merged 2 commits into
apache:masterfrom
morningman:pr-template
Nov 4, 2026
Merged

morningman merged 2 commits into
apache:masterfrom
morningman:pr-template

Conversation

@morningman

Copy link
Copy Markdown
Contributor

Background

Every PR against master starts from .github/PULL_REQUEST_TEMPLATE.md, and the root AGENTS.md tells coding agents to write commit messages in the same layout. The current template asks for a problem summary, a release note, and checkboxes for tests, behavior changes, and documentation. Doris merges PRs by squashing, so the description becomes the commit message on master.

What problem does this PR solve?

Issue Number: None
Related PR: #42999 (introduced the current template), #70123 (a description written in this layout)
PR Type: Build/CI/Chore

Problem Summary:

The current template leaves out what reviewers most often have to ask for: the context of the module, why the change is needed and why this approach, why existing tests missed a bug, and what was verified. Many PRs leave its checkboxes unticked. This PR replaces it with a layout that opens with Background, has required fields for each PR type, asks a diff of more than about 300 changed lines to open Details with a Change map, and adds Testing, optional Notes for Reviewers, a pre-submission status, and an AI disclosure. Commit messages written by AGENTS.md rules follow the same layout.

Details

  • Affected: .github/PULL_REQUEST_TEMPLATE.md, which every new PR description starts from, and the commit and worktree rules in the root AGENTS.md. No build scripts, CI jobs, or workflows change; title-checker.yml accepts the same [type](scope) titles as before.
  • Developer and release impact: Authors fill in more sections, with the required fields of each PR type listed in a comment under Details; the reviewer checklist is gone. Coding agents write commit messages in the new layout, and from a worktree they may keep PR handoff files in ${DORIS_REPO}/.git/pr-handoff/. Releases are unaffected.
  • License and third-party: None.
  • Rollback: Revert this PR; nothing else depends on the template.

Testing

  • check_pr.py, the checker of the doris-pr-description skill (not part of this PR; see Notes for Reviewers), reports the unfilled template as not ready, with 17 errors that include the empty Background, Problem Summary, Testing, and Release note and every blank answer line. Its eleven bundled examples, one or two per PR type and written in this layout, pass it, and so does this description.
  • The description of [feature](audit) Add query_audit_always_on to keep query audit from being disabled #70123, written in this layout, passes the same checker, with one warning that its prose is longer than the limit.

Notes for Reviewers

  • Two commits: the template and the AGENTS.md rules, then guidance for the Change map and three refined comments. With the HTML comments removed, the second commit changes nothing.
  • AGENTS.md also drops the second copy of the paragraph on which files a commit may contain.
  • The new AGENTS.md text names the develop-with-evidence and doris-pr-description skills, which are not in this repository yet. They are to be added to apache/doris-skills, which a later PR includes here as a git submodule.

Release note

None

Check List (For Author)

  • Behavior changed: No
  • Does this need documentation: No
  • Pre-submission status: Ready

AI Disclosure

  • Tool: Claude Code (Claude Opus 5.5)
  • Generated: the template, the AGENTS.md text, the commit messages, and this description
  • Human review: The author reviewed all of the changes line by line.

…it messages

### Background

Every PR against `master` starts from `.github/PULL_REQUEST_TEMPLATE.md`, and the root `AGENTS.md` tells coding agents to write commit messages in the same layout. The current template asks for a problem summary, a release note, and checkboxes for tests, behavior changes, and documentation. Doris merges PRs by squashing, so the description becomes the commit message on `master`.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#42999 (introduced the current template)
PR Type: Build/CI/Chore

Problem Summary:

The current template leaves out what reviewers most often have to ask for: the context of the module, why the change is needed and why this approach, why existing tests missed a bug, and what was verified. Many PRs leave its checkboxes unticked. This PR replaces it with a layout that opens with Background, has required fields for each PR type, and adds Testing, optional Notes for Reviewers, a pre-submission status, and an AI disclosure. Commit messages written by `AGENTS.md` rules follow the same layout.

### Details

- **Affected:** `.github/PULL_REQUEST_TEMPLATE.md`, which every new PR description starts from, and the commit and worktree rules in the root `AGENTS.md`. No build scripts, CI jobs, or workflows change; `title-checker.yml` accepts the same `[type](scope)` titles as before.
- **Developer and release impact:** Authors fill in more sections, with the required fields of each PR type listed in a comment under Details; the reviewer checklist is gone. Coding agents write commit messages in the new layout, and from a worktree they may keep PR handoff files in `${DORIS_REPO}/.git/pr-handoff/`. Releases are unaffected.
- **License and third-party:** None.
- **Rollback:** Revert this PR; nothing else depends on the template.

### Testing

- The checker of the `doris-pr-description` skill (`scripts/check_pr.py`) reports the unfilled template as not ready, with 18 errors that include the empty Background, Problem Summary, Testing, and Release note and every blank answer line. Its bundled examples, written in this layout, pass it.
- This commit message passes the same checker.

### Release note

None

### Check List (For Author)

- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready

### AI Disclosure

- Tool: Claude Code (Claude Opus 5.5)
- Generated: the template, the `AGENTS.md` text, and this message
- Human review: not stated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emplate guidance

### Background

Each section of the PR template carries a guidance comment, which GitHub doesn't show and which authors delete when they fill the template in. Reviewers decide whether and how to review a PR from its title, Background, Problem Summary, and the diff size that GitHub shows beside them.

### What problem does this PR solve?

Issue Number: None
Related PR: None
PR Type: Build/CI/Chore

Problem Summary:

The comments didn't say how to account for a diff that is larger than its summary suggests, so reviewers of a large PR had to work out for themselves where its lines go and whether any of them are unrelated. This commit asks a diff of more than about 300 changed lines to open Details with a Change map, has Problem Summary say why the diff is that large and what existing users see after an upgrade, points Notes for Reviewers to the Change map, and drops the rule that `Related PR: None` may be written only after searching open and closed PRs.

### Details

- **Affected:** The guidance comments of `.github/PULL_REQUEST_TEMPLATE.md`; its headings and line labels don't change. No build scripts, CI jobs, or workflows change.
- **Developer and release impact:** Authors of a diff over about 300 changed lines start Details with a Change map, and `Related PR: None` no longer requires a search. Releases are unaffected.
- **License and third-party:** None.
- **Rollback:** Revert this commit; nothing depends on the comments.

### Testing

- With the HTML comments removed, the template is identical before and after this commit, so only the guidance changes.

### Release note

None

### Check List (For Author)

- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready

### AI Disclosure

- Tool: Claude Code (Claude Opus 5.5)
- Generated: the `Related PR` comment and this message; who wrote the other three comment changes is not stated
- Human review: The author reviewed all of the changes line by line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@morningman

Copy link
Copy Markdown
Contributor Author

skip buildall

@shuke987 shuke987 left a comment

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.

LGTM

@morningman
morningman merged commit b1720bd into apache:master Nov 4, 2026
37 checks passed
morningman added a commit to morningman/doris that referenced this pull request Nov 18, 2026
### Background

`doris-skills` is the Apache Doris repository of agent skills, included here as a submodule. Its `develop-with-evidence` skill develops and verifies a change and leaves a PR handoff file; `doris-pr-description` writes and submits the PR. Coding agents such as Claude Code and Codex read `AGENTS.md` when a session starts.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#70175 (introduced the PR guidance), apache#70582 (updated the skills submodule), apache#70672 (documented the worktree skill paths), apache/doris-skills#16 (added both skills)
PR Type: Build/CI/Chore

Problem Summary:

The worktree guidance now names the skill paths, but does not tell agents when to use them, so developers still have to request the skills explicitly. This PR makes `develop-with-evidence` the default for repository changes and `doris-pr-description` the default for PR tasks, unless the user asks otherwise. The contributor guides and PR template give people the same recommendation. Doris runtime behavior is unchanged.

### Details

- **Affected:** Four documentation files: `AGENTS.md`, both contributor guides, and the PR template. Build scripts, CI workflows, and the submodule pointer are unchanged.
- **Developer and release impact:** Agents that read `AGENTS.md` receive explicit task routing and instructions for checking out missing skills. Contributors see the same recommendation and can optionally fetch newer skills with `--remote`, while keeping the moved pointer out of commits. Releases are unchanged.
- **License and third-party:** None; no dependency, artifact, or license file changes.
- **Rollback:** Revert this PR; no other cleanup is required.

### Testing

- After rebasing onto `bb6fff5077e4`, checked that all four documentation patches match the original PR, that the final diff contains only 17 added lines, and that the `doris-skills` pointer matches master at `c353d71bc50d`.
- The author previously verified submodule initialization and both skill paths at `0b36dcb`, and agent routing in throwaway sparse clones with Claude Code 2.1.322 and Codex 0.163.0. These checks predate this rebase and were not rerun; they covered initial skill selection, not a complete development and PR submission.
- No Doris build or runtime tests were run for this documentation change.

### Notes for Reviewers

- Master already contains the original submodule bump and a newer commit. The rebase retains master's `c353d71bc50d` pointer, which descends from the original PR's `0b36dcb`; this PR now changes documentation only.
- Existing worktree instructions for loading the skills remain intact.

### Release note

None

### Check List (For Author)

- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Partially verified: agent routing checks predate this rebase and were not rerun.

### AI Disclosure

- Tool: Claude Code (Claude Opus 5.5); Codex (GPT-6)
- Generated: Claude Code wrote the original documentation and description; Codex resolved the rebase conflict and updated the title and description.
- Human review: not stated
- Prompts: Update doris-skills and recommend the two skills so agents use them automatically for development and PR submission. Then rebase, resolve conflicts, and update the PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hello-stephen pushed a commit that referenced this pull request Nov 18, 2026
### Background

`doris-skills` is the Apache Doris repository of agent skills, included
here as a submodule. Its `develop-with-evidence` skill develops and
verifies a change and leaves a PR handoff file; `doris-pr-description`
writes and submits the PR. Coding agents such as Claude Code and Codex
read `AGENTS.md` when a session starts.

### What problem does this PR solve?

Issue Number: None
Related PR: #70175 (introduced the PR guidance), #70582 (updated the
skills submodule), #70672 (documented the worktree skill paths),
apache/doris-skills#16 (added both skills)
PR Type: Build/CI/Chore

Problem Summary:

The worktree guidance now names the skill paths, but does not tell
agents when to use them, so developers still have to request the skills
explicitly. This PR makes `develop-with-evidence` the default for
repository changes and `doris-pr-description` the default for PR tasks,
unless the user asks otherwise. The contributor guides and PR template
give people the same recommendation. Doris runtime behavior is
unchanged.

### Details

- **Affected:** Four documentation files: `AGENTS.md`, both contributor
guides, and the PR template. Build scripts, CI workflows, and the
submodule pointer are unchanged.
- **Developer and release impact:** Agents that read `AGENTS.md` receive
explicit task routing and instructions for checking out missing skills.
Contributors see the same recommendation and can optionally fetch newer
skills with `--remote`, while keeping the moved pointer out of commits.
Releases are unchanged.
- **License and third-party:** None; no dependency, artifact, or license
file changes.
- **Rollback:** Revert this PR; no other cleanup is required.

### Testing

- After rebasing onto `bb6fff5077e4`, checked that all four
documentation patches match the original PR, that the final diff
contains only 17 added lines, and that the `doris-skills` pointer
matches master at `c353d71bc50d`.
- The author previously verified submodule initialization and both skill
paths at `0b36dcb`, and agent routing in throwaway sparse clones with
Claude Code 2.1.322 and Codex 0.163.0. These checks predate this rebase
and were not rerun; they covered initial skill selection, not a complete
development and PR submission.
- No Doris build or runtime tests were run for this documentation
change.

### Notes for Reviewers

- Master already contains the original submodule bump and a newer
commit. The rebase retains master's `c353d71bc50d` pointer, which
descends from the original PR's `0b36dcb`; this PR now changes
documentation only.
- Existing worktree instructions for loading the skills remain intact.

### Release note

None

### Check List (For Author)

- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Partially verified: agent routing checks
predate this rebase and were not rerun.

### AI Disclosure

- Tool: Claude Code (Claude Opus 5.5); Codex (GPT-6)
- Generated: Claude Code wrote the original documentation and
description; Codex resolved the rebase conflict and updated the title
and description.
- Human review: not stated
- Prompts: Update doris-skills and recommend the two skills so agents
use them automatically for development and PR submission. Then rebase,
resolve conflicts, and update the PR.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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.

3 participants