Skip to content

Conversation

@Raviguntakala
Copy link
Contributor

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

…y adding an excludePR parameter to the search tool and updating agent instructions.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

The following comment was made by an LLM, it may be inaccurate:

Results

No duplicate PRs found.

The search results only return the PR itself (PR #6924: "fix: prevent duplicate PR check from flagging current PR as duplicate"), which is expected since we're searching for it.

The other results from the first search (PRs #6905, #2483, #4879, #5170, #5779, #6403) are unrelated PRs that matched the broad "duplicate PR detection" keyword search but are not actually about the same issue.

Conclusion: This PR appears to be unique and addressing a specific issue with the duplicate PR detection workflow. There are no existing open PRs that appear to be duplicates or addressing the same problem.

@rekram1-node rekram1-node changed the title fix: prevent duplicate PR check from flagging current PR as duplicate ci: prevent duplicate PR check from flagging current PR as duplicate Jan 5, 2026
@rekram1-node rekram1-node merged commit c6a241e into anomalyco:dev Jan 5, 2026
2 checks passed
ryanwyler pushed a commit to gignit/opencode that referenced this pull request Jan 6, 2026
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