Skip to content

[MNT] Enhance PR template with detailed checklist items#270

Merged
PGijsbers merged 3 commits intomainfrom
PGijsbers-patch-1
Mar 11, 2026
Merged

[MNT] Enhance PR template with detailed checklist items#270
PGijsbers merged 3 commits intomainfrom
PGijsbers-patch-1

Conversation

@PGijsbers
Copy link
Copy Markdown
Contributor

@PGijsbers PGijsbers commented Mar 11, 2026

Updated the pull request template to clarify self-review and testing requirements.
The main motivation was that I prefer bots to self-identify. It's not that hard to spot typically, and correct changes might normally still be accepted, but it can help with prioritization or managing expectation on response times.

Updated the pull request template to clarify self-review and testing requirements.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 11, 2026

Warning

Rate limit exceeded

@PGijsbers has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3b7067bb-0c8a-41ef-8260-90c37a56cba8

📥 Commits

Reviewing files that changed from the base of the PR and between e13bb35 and b6e7f2f.

📒 Files selected for processing (1)
  • .github/PULL_REQUEST_TEMPLATE.md

Walkthrough

This change modifies the .github/PULL_REQUEST_TEMPLATE.md file to restructure the PR checklist. The update replaces the original simple checklist with a hierarchical organization under sections labeled "Always", "Required for code changes", and "If applicable". The revision expands existing checklist items with more detailed descriptions and adds new requirements such as explicit self-review wording and local test documentation notes. This is purely a template content and structural update with no impact on code behavior.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title '[MNT] Enhance PR template with detailed checklist items' accurately describes the main change: updating the PR template with more detailed checklist organization and content.
Description check ✅ Passed The description explains the motivation for updating the PR template to clarify self-review and testing requirements, which aligns with the actual changeset modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch PGijsbers-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue, and left some high level feedback:

  • The checklist items for tests are a bit awkward as independent checkboxes; consider rewording them into a single, mutually exclusive bullet (e.g., “Tests covering these changes: [ ] added new tests / [ ] already covered by existing tests”) to make the intent clearer.
  • There is a small wording issue in the new checklist item “All changes already under covered under existing tests”; you probably want to drop the extra “under” (e.g., “already covered by existing tests”).
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The checklist items for tests are a bit awkward as independent checkboxes; consider rewording them into a single, mutually exclusive bullet (e.g., “Tests covering these changes: [ ] added new tests / [ ] already covered by existing tests”) to make the intent clearer.
- There is a small wording issue in the new checklist item “All changes already under covered under existing tests”; you probably want to drop the extra “under” (e.g., “already covered by existing tests”).

## Individual Comments

### Comment 1
<location path=".github/PULL_REQUEST_TEMPLATE.md" line_range="16" />
<code_context>
+- [ ] Tests pass locally
 - [ ] I have commented my code in hard-to-understand areas, and provided or updated docstrings as needed
+- [ ] I have added tests that cover the changes, or
+- [ ] All changes already under covered under existing tests
+
+If applicable:
</code_context>
<issue_to_address>
**issue (typo):** Fix the duplicated "under" and missing verb in this checkbox line.

This line has a typo: "All changes already under covered under existing tests." It should read something like "All changes are already covered under existing tests" or "All changes are already covered by existing tests."

```suggestion
- [ ] All changes are already covered under existing tests
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
.github/PULL_REQUEST_TEMPLATE.md (2)

21-22: Broaden the bot disclosure wording.

created autonomously is pretty narrow, so PRs largely authored by a bot but lightly edited by a human will likely go undisclosed. If the goal is prioritization and expectation-setting, the checkbox should cover material bot/agent authorship, not just fully autonomous submissions.

Proposed wording
-Extra context:
-- [ ] This PR and the commits have been created autonomously by a bot/agent.
+Extra context:
+- [ ] This PR or its commits were created wholly or substantially by a bot/agent.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/PULL_REQUEST_TEMPLATE.md around lines 21 - 22, Replace the narrow
checkbox text "This PR and the commits have been created autonomously by a
bot/agent." with broader wording that captures material bot involvement (e.g.,
"This PR and/or a significant portion of its commits were authored by a
bot/agent" or "This PR contains substantial content authored by a bot/agent") so
lightly-edited bot-generated PRs are disclosed; update the checkbox line in
.github/PULL_REQUEST_TEMPLATE.md (match the existing checkbox syntax) and adjust
any adjacent copy if necessary to preserve clarity and checklist formatting.

15-16: Make the test coverage statement unambiguous.

Using two independent checkboxes for an or condition lets authors check both or neither. Consider collapsing this into one item that requires the author to state which case applies.

Proposed wording
-- [ ] I have added tests that cover the changes, or
-- [ ] All changes are already covered under existing tests
+- [ ] Test coverage is sufficient for this change (new tests added, or existing tests already cover it)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/PULL_REQUEST_TEMPLATE.md around lines 15 - 16, Replace the two
ambiguous checklist lines "- [ ] I have added tests that cover the changes, or"
and "- [ ] All changes are already covered under existing tests" with a single
unambiguous item that requires authors to explicitly state which case applies
(for example: "- [ ] I confirm either I have added tests that cover the changes
OR all changes are already covered by existing tests — please indicate which:
(added | existing)"), so authors cannot check both or neither.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/PULL_REQUEST_TEMPLATE.md:
- Around line 21-22: Replace the narrow checkbox text "This PR and the commits
have been created autonomously by a bot/agent." with broader wording that
captures material bot involvement (e.g., "This PR and/or a significant portion
of its commits were authored by a bot/agent" or "This PR contains substantial
content authored by a bot/agent") so lightly-edited bot-generated PRs are
disclosed; update the checkbox line in .github/PULL_REQUEST_TEMPLATE.md (match
the existing checkbox syntax) and adjust any adjacent copy if necessary to
preserve clarity and checklist formatting.
- Around line 15-16: Replace the two ambiguous checklist lines "- [ ] I have
added tests that cover the changes, or" and "- [ ] All changes are already
covered under existing tests" with a single unambiguous item that requires
authors to explicitly state which case applies (for example: "- [ ] I confirm
either I have added tests that cover the changes OR all changes are already
covered by existing tests — please indicate which: (added | existing)"), so
authors cannot check both or neither.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b16de9b9-2e0d-495c-8da9-228c80ec945b

📥 Commits

Reviewing files that changed from the base of the PR and between f758b26 and e13bb35.

📒 Files selected for processing (1)
  • .github/PULL_REQUEST_TEMPLATE.md

@PGijsbers PGijsbers merged commit 33e86bc into main Mar 11, 2026
3 checks passed
@PGijsbers PGijsbers deleted the PGijsbers-patch-1 branch March 11, 2026 13:38
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.

1 participant