Skip to content

docs: add PR template#11290

Merged
zkochan merged 1 commit into
pnpm:mainfrom
kairosci:feat/add-pr-template
Jun 18, 2026
Merged

docs: add PR template#11290
zkochan merged 1 commit into
pnpm:mainfrom
kairosci:feat/add-pr-template

Conversation

@kairosci

@kairosci kairosci commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

This PR adds pull_request_template.md.

Summary by CodeRabbit

Documentation / Chores

  • Added a fully populated pull request template with guided sections for writing change summaries, standardized squash commit body text, and a release-related checklist.
  • Updated contribution guidance to require concise, pnpm-user-facing changeset descriptions for changes to published packages, moving implementation rationale to the commit message.
  • Reinforced that generated changeset files should be committed as part of the PR workflow.

@kairosci kairosci requested a review from zkochan as a code owner April 18, 2026 11:10
Copilot AI review requested due to automatic review settings April 18, 2026 11:10
@kairosci kairosci force-pushed the feat/add-pr-template branch from cceff84 to 713a52c Compare April 18, 2026 11:11
@kairosci kairosci marked this pull request as draft April 18, 2026 11:14
@kairosci kairosci closed this Apr 18, 2026
@kairosci kairosci reopened this Apr 18, 2026

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

Pull request overview

This PR adds a new pnpm bugs CLI command (including tests and a changeset) and also introduces a repository PR template; together these changes expand pnpm’s CLI surface while adding contributor-process documentation.

Changes:

  • Add a new pnpm bugs command wired into the CLI command registry, and remove it from the “not implemented” set.
  • Add Jest coverage for pnpm bugs behavior, plus test-runner utilities updates for resolving pnpm/pnpx bin locations.
  • Add a PR template and a changeset declaring a minor release for the new command.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
pnpm/test/utils/execPnpm.ts Changes how test utilities locate pnpm.mjs/pnpx.mjs binaries.
pnpm/test/bugs.ts Adds tests for the new pnpm bugs command.
pnpm/src/cmd/notImplemented.ts Removes bugs from the not-implemented commands list.
pnpm/src/cmd/index.ts Registers the new bugs command in the CLI.
pnpm/src/cmd/bugs.ts Implements pnpm bugs (URL discovery + platform opener).
.github/pull_request_template.md Adds a PR template with What/Why/With/How sections.
.changeset/pnpm-bugs-command.md Declares a minor changeset for the new command.

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

Comment thread pnpm/test/utils/execPnpm.ts Outdated
Comment thread pnpm/src/cmd/bugs.ts Outdated
Comment thread .github/pull_request_template.md Outdated
Comment thread pnpm/src/cmd/bugs.ts Outdated
Comment thread pnpm/src/cmd/bugs.ts Outdated
Comment thread pnpm/test/bugs.ts Outdated
@kairosci kairosci force-pushed the feat/add-pr-template branch from 713a52c to 4d12459 Compare April 18, 2026 11:17
@kairosci kairosci closed this Apr 18, 2026
@kairosci kairosci reopened this Apr 18, 2026
@kairosci kairosci marked this pull request as ready for review April 19, 2026 20:35
@kairosci kairosci force-pushed the feat/add-pr-template branch from a635f2b to 30707be Compare April 19, 2026 20:40
@Saturate

Copy link
Copy Markdown
Contributor

Maybe the changesets requirement could be communicated here somehow?

@zkochan

zkochan commented Apr 21, 2026

Copy link
Copy Markdown
Member

The funniest thing is that you yourself did not use the template in this PR

@zkochan zkochan force-pushed the feat/add-pr-template branch from 30707be to 75eea28 Compare June 18, 2026 09:10
Copilot AI review requested due to automatic review settings June 18, 2026 09:10

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ae942aa9-51b9-4c7c-ace1-56e35d7cdf55

📥 Commits

Reviewing files that changed from the base of the PR and between 11ac009 and c5a1645.

📒 Files selected for processing (3)
  • .github/pull_request_template.md
  • AGENTS.md
  • CONTRIBUTING.md
✅ Files skipped from review due to trivial changes (2)
  • AGENTS.md
  • CONTRIBUTING.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/pull_request_template.md

📝 Walkthrough

Walkthrough

A new pull request template is added at .github/pull_request_template.md with Summary, Squash Commit Body, and Checklist sections. Two documentation files are updated to clarify that changeset descriptions should be concise and user-facing for pnpm, while implementation rationale belongs in commit messages. No code or exported entities are modified.

Changes

Pull Request and Submission Process Documentation

Layer / File(s) Summary
PR template structure and sections
.github/pull_request_template.md
Adds a complete pull request template with Summary section for describing changes and linking/auto-closing issues, Squash Commit Body section for detailed git history, and Checklist section requiring CLI/Rust parity, changeset inclusion, test coverage, and documentation updates.
Changeset and contribution process documentation
AGENTS.md, CONTRIBUTING.md
Clarifies that changeset descriptions should be concise and written for pnpm users, with implementation rationale moved to commit messages rather than included in the changeset description itself.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • pnpm/pnpm#11640: Both PRs modify contribution guidance in AGENTS.md around TypeScript-only changesets and how to write changeset descriptions for pnpm users.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Tools execution failed with the following error:

Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)


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.

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jun 18, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (4) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Ambiguous rationale location 🐞 Bug ⚙ Maintainability ⭐ New
Description
AGENTS.md/CONTRIBUTING.md now say “implementation rationale belongs in the commit message”, but this
repo’s PR workflow expects squash merges where the durable commit message is the squash commit body
derived from the PR. This wording can mislead contributors into editing individual commit messages
instead of filling the PR’s “Squash Commit Body”, reducing the chance rationale is preserved in the
final history.
Code

AGENTS.md[214]

+If your changes affect published packages, you MUST create a changeset file in the `.changeset` directory. The changeset file should describe the change and specify the packages that are affected with the pending version bump types: patch, minor, or major. Write the description for pnpm users and keep it concise — it becomes a release note. Implementation rationale belongs in the commit message, not the changeset.
Evidence
The PR template explicitly states PRs are squash-merged and asks authors to provide rationale in the
squash commit body; repo config references a squash-title convention. However, AGENTS.md and
CONTRIBUTING.md now tell contributors to put rationale in the “commit message”, which is ambiguous
under squash merging and can be interpreted as individual commits rather than the PR’s squash commit
body.

.github/pull_request_template.md[11-18]
.coderabbit.yaml[17-25]
AGENTS.md[212-216]
CONTRIBUTING.md[193-201]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`AGENTS.md` and `CONTRIBUTING.md` instruct contributors to put implementation rationale in the “commit message”, but the repo’s workflow expects squash merges where the durable commit text comes from the PR’s squash commit body. This mismatch can confuse contributors about where to place rationale.

### Issue Context
The PR template explicitly requests rationale in the squash commit body, and repo config references a squash-title convention.

### Fix Focus Areas
- AGENTS.md[212-216]
- CONTRIBUTING.md[193-201]
- .github/pull_request_template.md[11-18]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Missing pnpm changeset reminder 🐞 Bug ⚙ Maintainability
Description
The PR template checklist asks authors to add a changeset but doesn’t mention the repo rule to
explicitly include a "pnpm" entry (with the appropriate bump) when the pnpm CLI needs a version
bump. This documentation gap increases the chance contributors follow the template yet still produce
an incomplete changeset compared to the required process.
Code

.github/pull_request_template.md[R30-31]

+- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
+  package. Keep it short and written for pnpm users — it becomes a release note.
Evidence
The template’s checklist item only instructs adding a changeset and keeping it concise, but it omits
the explicit "pnpm"-entry requirement that the repository documents as IMPORTANT for correct CLI
versioning.

.github/pull_request_template.md[28-32]
AGENTS.md[214-216]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template changeset checklist item does not remind contributors of the documented requirement to explicitly include a `"pnpm"` entry in the changeset when the CLI needs a version bump.
## Issue Context
`AGENTS.md` states that `"pnpm"` must be explicitly included in changesets to ensure the CLI gets the intended bump.
## Fix Focus Areas
- .github/pull_request_template.md[30-31]
- AGENTS.md[214-216]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Changeset guidance inconsistent 🐞 Bug ⚙ Maintainability
Description
The PR template’s changeset checklist item omits the newly-added rule that implementation rationale
belongs in the commit message, making contributor guidance inconsistent across docs and increasing
the chance of rationale text being placed into release-note changesets.
Code

.github/pull_request_template.md[R26-27]

+- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
+  package. Keep it short and written for pnpm users — it becomes a release note.
Evidence
The PR template currently instructs only to keep the changeset short for pnpm users, while the
updated contributor docs explicitly add that rationale must not go into changesets, so guidance is
inconsistent.

.github/pull_request_template.md[24-27]
AGENTS.md[212-215]
CONTRIBUTING.md[195-196]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template checklist mentions keeping changesets concise for pnpm users, but it does not include the repo’s new rule that implementation rationale should go in the commit message (not the changeset). This creates inconsistent instructions between the PR template and contributor docs.
### Issue Context
Both `AGENTS.md` and `CONTRIBUTING.md` were updated in this PR to explicitly state: “Implementation rationale belongs in the commit message, not the changeset.” The PR template should match that guidance.
### Fix Focus Areas
- .github/pull_request_template.md[24-27]
- AGENTS.md[212-215]
- CONTRIBUTING.md[195-196]
### Suggested change
Update the checklist item to include the same sentence, e.g. append: “Implementation rationale belongs in the commit message, not the changeset.”

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (1)
4. Bare issue refs in template 🐞 Bug ⚙ Maintainability
Description
The PR template examples use unqualified issue references like Closes #123, conflicting with
AGENTS.md guidance to avoid bare #NNN references (preferring pnpm/pnpm#NNN or full URLs). This
can lead to ambiguous links and noncompliant squash-merge commit messages if authors copy the
example into the “Squash Commit Body”.
Code

.github/pull_request_template.md[R3-4]

+<!-- Describe what this PR changes and why, for reviewers. Link any related
+issues here (Closes #123, Fixes #456, or Related to #123 for a partial fix). -->
Evidence
The new template contains bare #123 examples, while AGENTS.md explicitly says bare #NNN
references should not be used and instructs using qualified pnpm/pnpm#NNN or full URLs instead.

.github/pull_request_template.md[3-17]
AGENTS.md[188-197]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template currently suggests using bare issue references like `Closes #123`, which conflicts with repository guidance in `AGENTS.md` to avoid unqualified `#NNN` references.
## Issue Context
`AGENTS.md` requests qualified references like `pnpm/pnpm#NNN` (or full URLs) to avoid ambiguity.
## Fix Focus Areas
- .github/pull_request_template.md[3-17]
## Suggested change
Update the template examples to use qualified references, e.g.:
- `Closes pnpm/pnpm#123`, `Fixes pnpm/pnpm#456`, `Related to pnpm/pnpm#123`
- In the squash commit body example, replace `(Closes #123)` with `(Closes pnpm/pnpm#123)`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Previous review results

Review updated until commit c5a1645

Results up to commit 11ac009


🐞 Bugs (3) 📘 Rule violations (0) 📜 Skill insights (0)


Remediation recommended
1. Missing pnpm changeset reminder 🐞 Bug ⚙ Maintainability ⭐ New
Description
The PR template checklist asks authors to add a changeset but doesn’t mention the repo rule to
explicitly include a "pnpm" entry (with the appropriate bump) when the pnpm CLI needs a version
bump. This documentation gap increases the chance contributors follow the template yet still produce
an incomplete changeset compared to the required process.
Code

.github/pull_request_template.md[R30-31]

+- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
+  package. Keep it short and written for pnpm users — it becomes a release note.
Evidence
The template’s checklist item only instructs adding a changeset and keeping it concise, but it omits
the explicit "pnpm"-entry requirement that the repository documents as IMPORTANT for correct CLI
versioning.

.github/pull_request_template.md[28-32]
AGENTS.md[214-216]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template changeset checklist item does not remind contributors of the documented requirement to explicitly include a `"pnpm"` entry in the changeset when the CLI needs a version bump.

## Issue Context
`AGENTS.md` states that `"pnpm"` must be explicitly included in changesets to ensure the CLI gets the intended bump.

## Fix Focus Areas
- .github/pull_request_template.md[30-31]
- AGENTS.md[214-216]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Changeset guidance inconsistent 🐞 Bug ⚙ Maintainability
Description
The PR template’s changeset checklist item omits the newly-added rule that implementation rationale
belongs in the commit message, making contributor guidance inconsistent across docs and increasing
the chance of rationale text being placed into release-note changesets.
Code

.github/pull_request_template.md[R26-27]

+- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
+  package. Keep it short and written for pnpm users — it becomes a release note.
Evidence
The PR template currently instructs only to keep the changeset short for pnpm users, while the
updated contributor docs explicitly add that rationale must not go into changesets, so guidance is
inconsistent.

.github/pull_request_template.md[24-27]
AGENTS.md[212-215]
CONTRIBUTING.md[195-196]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template checklist mentions keeping changesets concise for pnpm users, but it does not include the repo’s new rule that implementation rationale should go in the commit message (not the changeset). This creates inconsistent instructions between the PR template and contributor docs.
### Issue Context
Both `AGENTS.md` and `CONTRIBUTING.md` were updated in this PR to explicitly state: “Implementation rationale belongs in the commit message, not the changeset.” The PR template should match that guidance.
### Fix Focus Areas
- .github/pull_request_template.md[24-27]
- AGENTS.md[212-215]
- CONTRIBUTING.md[195-196]
### Suggested change
Update the checklist item to include the same sentence, e.g. append: “Implementation rationale belongs in the commit message, not the changeset.”

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Bare issue refs in template 🐞 Bug ⚙ Maintainability
Description
The PR template examples use unqualified issue references like Closes #123, conflicting with
AGENTS.md guidance to avoid bare #NNN references (preferring pnpm/pnpm#NNN or full URLs). This
can lead to ambiguous links and noncompliant squash-merge commit messages if authors copy the
example into the “Squash Commit Body”.
Code

.github/pull_request_template.md[R3-4]

+<!-- Describe what this PR changes and why, for reviewers. Link any related
+issues here (Closes #123, Fixes #456, or Related to #123 for a partial fix). -->
Evidence
The new template contains bare #123 examples, while AGENTS.md explicitly says bare #NNN
references should not be used and instructs using qualified pnpm/pnpm#NNN or full URLs instead.

.github/pull_request_template.md[3-17]
AGENTS.md[188-197]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template currently suggests using bare issue references like `Closes #123`, which conflicts with repository guidance in `AGENTS.md` to avoid unqualified `#NNN` references.
## Issue Context
`AGENTS.md` requests qualified references like `pnpm/pnpm#NNN` (or full URLs) to avoid ambiguity.
## Fix Focus Areas
- .github/pull_request_template.md[3-17]
## Suggested change
Update the template examples to use qualified references, e.g.:
- `Closes pnpm/pnpm#123`, `Fixes pnpm/pnpm#456`, `Related to pnpm/pnpm#123`
- In the squash commit body example, replace `(Closes #123)` with `(Closes pnpm/pnpm#123)`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit fff8538


🐞 Bugs (2) 📘 Rule violations (0) 📜 Skill insights (0)


Remediation recommended
1. Changeset guidance inconsistent 🐞 Bug ⚙ Maintainability ⭐ New
Description
The PR template’s changeset checklist item omits the newly-added rule that implementation rationale
belongs in the commit message, making contributor guidance inconsistent across docs and increasing
the chance of rationale text being placed into release-note changesets.
Code

.github/pull_request_template.md[R26-27]

+- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
+  package. Keep it short and written for pnpm users — it becomes a release note.
Evidence
The PR template currently instructs only to keep the changeset short for pnpm users, while the
updated contributor docs explicitly add that rationale must not go into changesets, so guidance is
inconsistent.

.github/pull_request_template.md[24-27]
AGENTS.md[212-215]
CONTRIBUTING.md[195-196]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The PR template checklist mentions keeping changesets concise for pnpm users, but it does not include the repo’s new rule that implementation rationale should go in the commit message (not the changeset). This creates inconsistent instructions between the PR template and contributor docs.

### Issue Context
Both `AGENTS.md` and `CONTRIBUTING.md` were updated in this PR to explicitly state: “Implementation rationale belongs in the commit message, not the changeset.” The PR template should match that guidance.

### Fix Focus Areas
- .github/pull_request_template.md[24-27]
- AGENTS.md[212-215]
- CONTRIBUTING.md[195-196]

### Suggested change
Update the checklist item to include the same sentence, e.g. append: “Implementation rationale belongs in the commit message, not the changeset.”

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Bare issue refs in template 🐞 Bug ⚙ Maintainability
Description
The PR template examples use unqualified issue references like Closes #123, conflicting with
AGENTS.md guidance to avoid bare #NNN references (preferring pnpm/pnpm#NNN or full URLs). This
can lead to ambiguous links and noncompliant squash-merge commit messages if authors copy the
example into the “Squash Commit Body”.
Code

.github/pull_request_template.md[R3-4]

+<!-- Describe what this PR changes and why, for reviewers. Link any related
+issues here (Closes #123, Fixes #456, or Related to #123 for a partial fix). -->
Evidence
The new template contains bare #123 examples, while AGENTS.md explicitly says bare #NNN
references should not be used and instructs using qualified pnpm/pnpm#NNN or full URLs instead.

.github/pull_request_template.md[3-17]
AGENTS.md[188-197]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template currently suggests using bare issue references like `Closes #123`, which conflicts with repository guidance in `AGENTS.md` to avoid unqualified `#NNN` references.
## Issue Context
`AGENTS.md` requests qualified references like `pnpm/pnpm#NNN` (or full URLs) to avoid ambiguity.
## Fix Focus Areas
- .github/pull_request_template.md[3-17]
## Suggested change
Update the template examples to use qualified references, e.g.:
- `Closes pnpm/pnpm#123`, `Fixes pnpm/pnpm#456`, `Related to pnpm/pnpm#123`
- In the squash commit body example, replace `(Closes #123)` with `(Closes pnpm/pnpm#123)`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 390f7ef


🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)


Remediation recommended
1. Bare issue refs in template 🐞 Bug ⚙ Maintainability
Description
The PR template examples use unqualified issue references like Closes #123, conflicting with
AGENTS.md guidance to avoid bare #NNN references (preferring pnpm/pnpm#NNN or full URLs). This
can lead to ambiguous links and noncompliant squash-merge commit messages if authors copy the
example into the “Squash Commit Body”.
Code

.github/pull_request_template.md[R3-4]

+<!-- Describe what this PR changes and why, for reviewers. Link any related
+issues here (Closes #123, Fixes #456, or Related to #123 for a partial fix). -->
Evidence
The new template contains bare #123 examples, while AGENTS.md explicitly says bare #NNN
references should not be used and instructs using qualified pnpm/pnpm#NNN or full URLs instead.

.github/pull_request_template.md[3-17]
AGENTS.md[188-197]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template currently suggests using bare issue references like `Closes #123`, which conflicts with repository guidance in `AGENTS.md` to avoid unqualified `#NNN` references.
## Issue Context
`AGENTS.md` requests qualified references like `pnpm/pnpm#NNN` (or full URLs) to avoid ambiguity.
## Fix Focus Areas
- .github/pull_request_template.md[3-17]
## Suggested change
Update the template examples to use qualified references, e.g.:
- `Closes pnpm/pnpm#123`, `Fixes pnpm/pnpm#456`, `Related to pnpm/pnpm#123`
- In the squash commit body example, replace `(Closes #123)` with `(Closes pnpm/pnpm#123)`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 2d9694b


🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)


Remediation recommended
1. Bare issue refs in template 🐞 Bug ⚙ Maintainability
Description
The PR template examples use unqualified issue references like Closes #123, conflicting with
AGENTS.md guidance to avoid bare #NNN references (preferring pnpm/pnpm#NNN or full URLs). This
can lead to ambiguous links and noncompliant squash-merge commit messages if authors copy the
example into the “Squash Commit Body”.
Code

.github/pull_request_template.md[R3-4]

+<!-- Describe what this PR changes and why, for reviewers. Link any related
+issues here (Closes #123, Fixes #456, or Related to #123 for a partial fix). -->
Evidence
The new template contains bare #123 examples, while AGENTS.md explicitly says bare #NNN
references should not be used and instructs using qualified pnpm/pnpm#NNN or full URLs instead.

.github/pull_request_template.md[3-17]
AGENTS.md[188-197]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR template currently suggests using bare issue references like `Closes #123`, which conflicts with repository guidance in `AGENTS.md` to avoid unqualified `#NNN` references.

## Issue Context
`AGENTS.md` requests qualified references like `pnpm/pnpm#NNN` (or full URLs) to avoid ambiguity.

## Fix Focus Areas
- .github/pull_request_template.md[3-17]

## Suggested change
Update the template examples to use qualified references, e.g.:
- `Closes pnpm/pnpm#123`, `Fixes pnpm/pnpm#456`, `Related to pnpm/pnpm#123`
- In the squash commit body example, replace `(Closes #123)` with `(Closes pnpm/pnpm#123)`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 75eea28


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review
Auto-approved notes - no code review findings
- 'auto_approve_for_no_suggestions' flag enabled
Qodo Logo

@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: 1

🤖 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 @.github/pull_request_template.md:
- Around line 1-19: Add a new "Changesets" section to the pull request template
that guides contributors on the required changeset process. Insert this section
after the "Related Issues" section and before the "How to Validate" section. The
section should include clear instructions on running `pnpm changeset` to
generate a changeset file and reference the CONTRIBUTING guide for additional
details.
🪄 Autofix (Beta)

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4f67d59c-8760-481f-b77a-9cfa96419679

📥 Commits

Reviewing files that changed from the base of the PR and between fe66535 and 75eea28.

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

Comment thread .github/pull_request_template.md Outdated
@zkochan zkochan force-pushed the feat/add-pr-template branch from 75eea28 to 2d9694b Compare June 18, 2026 09:28
Comment thread .github/pull_request_template.md Outdated
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 2d9694b

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

🧹 Nitpick comments (1)
.github/pull_request_template.md (1)

15-17: 💤 Low value

Consider adding a language specifier to the fenced code block (minor linting).

Markdownlint flagged the fenced code block at line 15 as missing a language identifier (MD040). While this is a placeholder for contributor input, adding a specifier (e.g., ```markdown or ```text) would satisfy the linting rule without compromising usability. This is optional and can be deferred if you prefer to keep the block language-agnostic.

🤖 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 @.github/pull_request_template.md around lines 15 - 17, Add a language
specifier to the fenced code block that contains the text "Explain what changed
and why. Reference issues here too (Closes `#123`)." by modifying the opening
fence from ``` to ```markdown or ```text. This will satisfy the markdownlint
MD040 rule which requires language identifiers on fenced code blocks, while
maintaining the placeholder's usability for contributors.

Source: Linters/SAST tools

🤖 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.

Nitpick comments:
In @.github/pull_request_template.md:
- Around line 15-17: Add a language specifier to the fenced code block that
contains the text "Explain what changed and why. Reference issues here too
(Closes `#123`)." by modifying the opening fence from ``` to ```markdown or
```text. This will satisfy the markdownlint MD040 rule which requires language
identifiers on fenced code blocks, while maintaining the placeholder's usability
for contributors.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 41a74191-8a7e-4e85-be2c-bc27f96d0006

📥 Commits

Reviewing files that changed from the base of the PR and between 75eea28 and 2d9694b.

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

Copilot AI review requested due to automatic review settings June 18, 2026 09:38
@zkochan zkochan force-pushed the feat/add-pr-template branch from 2d9694b to 390f7ef Compare June 18, 2026 09:38

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 390f7ef

@zkochan zkochan force-pushed the feat/add-pr-template branch from 390f7ef to fff8538 Compare June 18, 2026 09:40
Copilot AI review requested due to automatic review settings June 18, 2026 09:42
@zkochan zkochan force-pushed the feat/add-pr-template branch from fff8538 to 11ac009 Compare June 18, 2026 09:42
Comment on lines +26 to +27
- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
package. Keep it short and written for pnpm users — it becomes a release note.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

1. Changeset guidance inconsistent 🐞 Bug ⚙ Maintainability

The PR template’s changeset checklist item omits the newly-added rule that implementation rationale
belongs in the commit message, making contributor guidance inconsistent across docs and increasing
the chance of rationale text being placed into release-note changesets.
Agent Prompt
### Issue description
The PR template checklist mentions keeping changesets concise for pnpm users, but it does not include the repo’s new rule that implementation rationale should go in the commit message (not the changeset). This creates inconsistent instructions between the PR template and contributor docs.

### Issue Context
Both `AGENTS.md` and `CONTRIBUTING.md` were updated in this PR to explicitly state: “Implementation rationale belongs in the commit message, not the changeset.” The PR template should match that guidance.

### Fix Focus Areas
- .github/pull_request_template.md[24-27]
- AGENTS.md[212-215]
- CONTRIBUTING.md[195-196]

### Suggested change
Update the checklist item to include the same sentence, e.g. append: “Implementation rationale belongs in the commit message, not the changeset.”

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit fff8538

Comment on lines +30 to +31
- [ ] Added a changeset (`pnpm changeset`) if this PR changes any published
package. Keep it short and written for pnpm users — it becomes a release note.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

1. Missing pnpm changeset reminder 🐞 Bug ⚙ Maintainability

The PR template checklist asks authors to add a changeset but doesn’t mention the repo rule to
explicitly include a "pnpm" entry (with the appropriate bump) when the pnpm CLI needs a version
bump. This documentation gap increases the chance contributors follow the template yet still produce
an incomplete changeset compared to the required process.
Agent Prompt
## Issue description
The PR template changeset checklist item does not remind contributors of the documented requirement to explicitly include a `"pnpm"` entry in the changeset when the CLI needs a version bump.

## Issue Context
`AGENTS.md` states that `"pnpm"` must be explicitly included in changesets to ensure the CLI gets the intended bump.

## Fix Focus Areas
- .github/pull_request_template.md[30-31]
- AGENTS.md[214-216]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 11ac009

@zkochan zkochan force-pushed the feat/add-pr-template branch from 11ac009 to c5a1645 Compare June 18, 2026 09:44
Comment thread AGENTS.md
## Changesets (TypeScript only)

If your changes affect published packages, you MUST create a changeset file in the `.changeset` directory. The changeset file should describe the change and specify the packages that are affected with the pending version bump types: patch, minor, or major.
If your changes affect published packages, you MUST create a changeset file in the `.changeset` directory. The changeset file should describe the change and specify the packages that are affected with the pending version bump types: patch, minor, or major. Write the description for pnpm users and keep it concise — it becomes a release note. Implementation rationale belongs in the commit message, not the changeset.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

1. Ambiguous rationale location 🐞 Bug ⚙ Maintainability

AGENTS.md/CONTRIBUTING.md now say “implementation rationale belongs in the commit message”, but this
repo’s PR workflow expects squash merges where the durable commit message is the squash commit body
derived from the PR. This wording can mislead contributors into editing individual commit messages
instead of filling the PR’s “Squash Commit Body”, reducing the chance rationale is preserved in the
final history.
Agent Prompt
### Issue description
`AGENTS.md` and `CONTRIBUTING.md` instruct contributors to put implementation rationale in the “commit message”, but the repo’s workflow expects squash merges where the durable commit text comes from the PR’s squash commit body. This mismatch can confuse contributors about where to place rationale.

### Issue Context
The PR template explicitly requests rationale in the squash commit body, and repo config references a squash-title convention.

### Fix Focus Areas
- AGENTS.md[212-216]
- CONTRIBUTING.md[193-201]
- .github/pull_request_template.md[11-18]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit c5a1645

@zkochan zkochan merged commit c2414e8 into pnpm:main Jun 18, 2026
21 of 22 checks passed
@kairosci kairosci deleted the feat/add-pr-template branch June 18, 2026 18:52
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.

4 participants