Skip to content

[replay #7427] docs: define how to pick a PR title's type and scope - #13

Open
sshiv012 wants to merge 4 commits into
replay/7427-basefrom
replay/7427-head
Open

[replay #7427] docs: define how to pick a PR title's type and scope#13
sshiv012 wants to merge 4 commits into
replay/7427-basefrom
replay/7427-head

Conversation

@sshiv012

@sshiv012 sshiv012 commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Replay of apache#7427 for CodeRabbit evaluation.

merge-base 5e41efae2650 head 5cc5ff3adab1 stratum workflows

Synthetic evaluation PR. Do not merge.

  • Added guidance for selecting Conventional Commit types and scopes in pull request titles.
  • Updated examples for feature, fix, refactor, test, dependency, CI, and release-branch changes.
  • Clarified module scope rules and refactor test expectations.
  • Updated branch, commit, dependency, and backport naming guidance.
Contributing author Lines added Lines removed
Not provided 125 15

Yicong-Huang and others added 4 commits August 8, 2026 10:20
Closes apache#7393

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Contribution templates and documentation now provide expanded Conventional Commits guidance. The updates cover scopes, change types, tests, dependencies, CI, release branches, and refactor test assertions.

Changes

Contribution guidance

Layer / File(s) Summary
Commit, PR, and test guidance
.github/PULL_REQUEST_TEMPLATE, AGENTS.md, CONTRIBUTING.md, docs/contribution-guidelines/_index.md
The documentation adds scoped examples and rules for features, fixes, refactors, tests, dependencies, CI changes, and release-branch backports. Refactor guidance distinguishes public API assertions from internal implementation assertions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: yicong-huang

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the documentation changes that define how to select PR title types and scopes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch replay/7427-head

Comment @coderabbitai help to get the list of available commands.

@sshiv012

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 172-178: Update the GitHub Actions row in the Dependencies
commit-convention table to distinguish CVE-patching updates from all other
Actions bumps: document `fix(deps, ci): ...` for CVE patches and retain
`chore(deps, ci): ...` otherwise, matching the existing dependency-bump
guidance.

In `@CONTRIBUTING.md`:
- Around line 63-69: Update the Markdown tables in the contribution guidance
around the change-type table and the other affected table to use leading-only
pipes: remove the trailing `|` from every row in both table sections while
preserving their contents and alignment.

In `@docs/contribution-guidelines/_index.md`:
- Around line 72-75: Clarify the dependency-bump example in the PR title
guidance by either replacing `chore(deps): bump dependency versions` with a
module-scoped example or explicitly labeling it as a cross-module bump. Keep the
surrounding scope rules consistent with the documented exception for
cross-module changes.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dd465964-203f-4e27-81d2-18b42f76bf45

📥 Commits

Reviewing files that changed from the base of the PR and between 5e41efa and 5cc5ff3.

📒 Files selected for processing (4)
  • .github/PULL_REQUEST_TEMPLATE
  • AGENTS.md
  • CONTRIBUTING.md
  • docs/contribution-guidelines/_index.md

Comment thread AGENTS.md
Comment on lines +172 to +178
**Dependencies.** `fix` only when the bump carries a security fix:

| Bump | Commit |
| --- | --- |
| Patches a CVE | `fix(deps, <module>): ...` |
| Everything else | `chore(deps, <module>): ...` |
| GitHub Actions | `chore(deps, ci): ...` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Add the CVE exception to the GitHub Actions row.

Line 172 says that fix applies to security bumps, but Line 178 lists GitHub Actions updates as chore(deps, ci) without an exception. This conflicts with CONTRIBUTING.md Line 86 and docs/contribution-guidelines/_index.md Line 100. A contributor can select chore for a CVE-patching Actions update and miss fix-specific backport automation. Add the fix(deps, ci) form for CVE patches.

Proposed documentation fix
-| GitHub Actions | `chore(deps, ci): ...` |
+| GitHub Actions | `chore(deps, ci): ...`, or `fix(deps, ci): ...` when the bump patches a CVE |

As per coding guidelines, classify dependency bumps as fix only when they patch a CVE and use chore otherwise.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Dependencies.** `fix` only when the bump carries a security fix:
| Bump | Commit |
| --- | --- |
| Patches a CVE | `fix(deps, <module>): ...` |
| Everything else | `chore(deps, <module>): ...` |
| GitHub Actions | `chore(deps, ci): ...` |
**Dependencies.** `fix` only when the bump carries a security fix:
| Bump | Commit |
| --- | --- |
| Patches a CVE | `fix(deps, <module>): ...` |
| Everything else | `chore(deps, <module>): ...` |
| GitHub Actions | `chore(deps, ci): ...`, or `fix(deps, ci): ...` when the bump patches a CVE |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 172 - 178, Update the GitHub Actions row in the
Dependencies commit-convention table to distinguish CVE-patching updates from
all other Actions bumps: document `fix(deps, ci): ...` for CVE patches and
retain `chore(deps, ci): ...` otherwise, matching the existing dependency-bump
guidance.

Source: Coding guidelines

Comment thread CONTRIBUTING.md
Comment on lines +63 to +69
| Your change | Type |
| ----------- | ---- |
| A functionality worked before and no longer does | `fix` |
| A functionality or a form of support never existed and you are adding it | `feat` |
| A functionality exists and you are removing support for it | `feat` |
| A functionality is reworked in a way that intentionally changes user-facing behavior | `feat` |
| The change leaves the user-facing behavior unchanged | `refactor` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the Markdown table style reported by markdownlint-cli2.

MD055 reports trailing pipes in both changed tables. Remove the final | from every row in Lines 63-69 and Lines 79-84 because the configured style is leading-only.

Proposed Markdown fix
-| Your change | Type |
-| ----------- | ---- |
+| Your change | Type
+| ----------- | ----

Also applies to: 79-84

🧰 Tools
🪛 markdownlint-cli2 (0.23.2)

[warning] 63-63: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 64-64: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 65-65: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 66-66: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 67-67: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 68-68: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)


[warning] 69-69: Table pipe style
Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe

(MD055, table-pipe-style)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CONTRIBUTING.md` around lines 63 - 69, Update the Markdown tables in the
contribution guidance around the change-type table and the other affected table
to use leading-only pipes: remove the trailing `|` from every row in both table
sections while preserving their contents and alignment.

Source: Linters/SAST tools

Comment on lines 72 to +75
- `chore(deps): bump dependency versions`
- The PR title becomes the final squashed commit message upon merge.

A scope names the module the change lands in — `amber`, `pyamber`, `frontend`, `agent-service`, `file-service`, and so on. Use the module's own name rather than an informal synonym, and when a PR spans modules, scope it to the one carrying the substantive change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Clarify the unscoped dependency example.

Line 72 shows a bare chore(deps) title. Lines 75 and 93-100 require a module scope for module-specific dependency bumps. Line 100 allows omitting the module only for cross-module bumps. Replace the example with a module-scoped form or state that it represents a cross-module bump.

Proposed documentation fix
-  - `chore(deps): bump dependency versions`
+  - `chore(deps, pyamber): bump numpy to version 2.0.0`
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- `chore(deps): bump dependency versions`
- The PR title becomes the final squashed commit message upon merge.
A scope names the module the change lands in — `amber`, `pyamber`, `frontend`, `agent-service`, `file-service`, and so on. Use the module's own name rather than an informal synonym, and when a PR spans modules, scope it to the one carrying the substantive change.
- `chore(deps, pyamber): bump numpy to version 2.0.0`
- The PR title becomes the final squashed commit message upon merge.
A scope names the module the change lands in — `amber`, `pyamber`, `frontend`, `agent-service`, `file-service`, and so on. Use the module's own name rather than an informal synonym, and when a PR spans modules, scope it to the one carrying the substantive change.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/contribution-guidelines/_index.md` around lines 72 - 75, Clarify the
dependency-bump example in the PR title guidance by either replacing
`chore(deps): bump dependency versions` with a module-scoped example or
explicitly labeling it as a cross-module bump. Keep the surrounding scope rules
consistent with the documented exception for cross-module changes.

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