[PR #6924] ci: prevent duplicate PR check from flagging current PR as duplicate #12160

Closed
opened 2026-02-16 18:17:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6924

State: closed
Merged: Yes


Problem

When a new PR is opened, the duplicate PR detection workflow searches for similar PRs.
However, the search results include the newly opened PR itself, causing it to be
incorrectly flagged as a "duplicate" of itself.

Solution

  • Added excludePR parameter to the github-pr-search tool to filter out a specific PR
  • Updated the workflow to pass the current PR number explicitly via CURRENT_PR_NUMBER
  • Updated agent instructions to use this parameter
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6924 **State:** closed **Merged:** Yes --- ## Problem When a new PR is opened, the duplicate PR detection workflow searches for similar PRs. However, the search results include the newly opened PR itself, causing it to be incorrectly flagged as a "duplicate" of itself. ## Solution - Added `excludePR` parameter to the `github-pr-search` tool to filter out a specific PR - Updated the workflow to pass the current PR number explicitly via `CURRENT_PR_NUMBER` - Updated agent instructions to use this parameter
yindo added the pull-request label 2026-02-16 18:17:05 -05:00
yindo closed this issue 2026-02-16 18:17:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12160