Skip to content

docs(github): ask PR authors to confirm no linked PR solves the issue - #13498

Merged
zkochan merged 1 commit into
mainfrom
pr-template-duplicate-pr-check
Jul 30, 2026
Merged

zkochan merged 1 commit into
mainfrom
pr-template-duplicate-pr-check

Conversation

@zkochan

@zkochan zkochan commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Contributors keep submitting parallel PRs for the same issue — e.g. #13114 and #13124 both fixed #13108, and the former ended up closed as superseded after both authors and reviewers had spent time on it. GitHub already cross-links every PR that references an issue on the issue's timeline, so this adds a checklist item asking authors to check those links and confirm no already-linked PR solves the issue before submitting.

Squash Commit Body

Multiple contributors keep submitting parallel PRs for the same issue
(e.g. pnpm/pnpm#13114 was superseded by pnpm/pnpm#13124 for issue
pnpm/pnpm#13108). GitHub already cross-links every PR that references
an issue on the issue's timeline, so add a checklist item prompting
authors to check those links before submitting.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust pnpm/ port — n/a, repository meta file.
  • Added a changeset — n/a, no published package affected.
  • Added or updated tests — n/a.
  • Updated the documentation if needed — n/a.

Written by an agent (Claude Code, claude-fable-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation
    • Updated the pull request checklist with an item to verify the referenced issue and check for existing solutions.

Multiple contributors keep submitting parallel PRs for the same issue
(e.g. #13114 was superseded by #13124 for issue
#13108). GitHub already cross-links every PR that references
an issue on the issue's timeline, so add a checklist item prompting
authors to check those links before submitting.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 30, 2026 11:35

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 Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

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: fc68594a-534b-4aa4-925a-42fbe58cb858

📥 Commits

Reviewing files that changed from the base of the PR and between c7bab86 and bb5621b.

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

📝 Walkthrough

Walkthrough

The pull request template now includes an unchecked checklist item asking authors to verify the referenced issue and confirm that no existing linked pull request already resolves it.

Changes

PR template checklist

Layer / File(s) Summary
Add issue verification checklist
.github/pull_request_template.md
Adds an unchecked item covering referenced-issue verification and linked pull request checks.

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

Assessment against linked issues

Objective Addressed Explanation
Fix pnpm update and pnpm add so peerDependencies version prefixes do not affect other dependency scopes [#13108] ❌ The PR changes only the pull request template and does not modify dependency update or add behavior.

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pr-template-duplicate-pr-check

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

docs(github): prompt authors to check issue-linked PRs before submitting

📝 Documentation 🕐 Less than 5 minutes

Grey Divider

AI Description

• Add a PR template checklist item to reduce duplicate parallel PRs for the same issue.
• Ask authors to confirm no already-linked PR on the issue timeline already solves it.
Diagram

graph TD
  A["PR author"] --> B["PR template checklist"] --> C["Issue timeline (GitHub)"] --> D["Linked PRs"] --> E{"Already solved?"}
  E --> F["Coordinate / close"]
  E --> G["Submit PR"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. GitHub Action to detect duplicates
  • ➕ Automates detection (e.g., warns when multiple open PRs reference the same issue)
  • ➕ Can enforce policy consistently without relying on authors reading the template
  • ➖ More maintenance and potential false positives
  • ➖ Harder to implement robustly (needs heuristics beyond issue references)
2. Issue/PR triage label + bot comment workflow
  • ➕ Centralizes coordination (e.g., label an issue as 'in progress' and point to a canonical PR)
  • ➕ Works even when PR authors forget to check the issue timeline
  • ➖ Requires ongoing triage effort
  • ➖ Still doesn’t prevent parallel work without strong enforcement

Recommendation: The template checklist is a low-friction, low-maintenance mitigation that leverages GitHub’s existing cross-linking on issue timelines. Consider automation (Action/bot) only if duplicates remain frequent enough to justify additional maintenance and false-positive handling.

Files changed (1) +2 / -0

Documentation (1) +2 / -0
pull_request_template.mdAdd checklist item to check issue-linked PRs for duplicates +2/-0

Add checklist item to check issue-linked PRs for duplicates

• Adds a new checklist item asking authors to verify that no PR already linked to the referenced issue solves it. This is intended to reduce duplicate parallel PR efforts by prompting a quick check of the issue timeline before submitting.

.github/pull_request_template.md

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge with no actionable issues identified.

The documentation-only change uses valid checklist Markdown, matches the surrounding template structure, and remains optional for pull requests where it does not apply.

Reviews (1): Last reviewed commit: "docs(github): ask PR authors to confirm ..." | Re-trigger Greptile

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 30, 2026
@zkochan
zkochan merged commit b9603f6 into main Jul 30, 2026
26 checks passed
@zkochan
zkochan deleted the pr-template-duplicate-pr-check branch July 30, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm update and pnpm add are influenced by existing peerDependencies version prefixes

2 participants