Skip to content

Conversation

@philprime
Copy link
Member

The workflow was creating duplicate issues when multiple trigger events (opened, edited, synchronize, etc.) fired in quick succession. Both workflow runs would check the PR simultaneously, find no issue reference, and each create a new issue.

Added a check to search for existing issues created by this automation before creating a new one. The workflow now searches for open issues that contain the PR URL and were created by github-actions bot, preventing duplicate issue creation.

Fixes the issue where PR #6386 had two issues created (#6499 and #6500).

#skip-changelog

The workflow was creating duplicate issues when multiple trigger events
(opened, edited, synchronize, etc.) fired in quick succession. Both
workflow runs would check the PR simultaneously, find no issue reference,
and each create a new issue.

Added a check to search for existing issues created by this automation
before creating a new one. The workflow now searches for open issues that
contain the PR URL and were created by github-actions bot, preventing
duplicate issue creation.

Fixes the issue where PR #6386 had two issues created (#6499 and #6500).
@cursor
Copy link

cursor bot commented Oct 23, 2025

Bug: Search Filter Fails to Detect Issues

The search query's author:app/github-actions filter prevents detecting existing issues. Issues created by the workflow using GITHUB_TOKEN are typically attributed to github-actions[bot] or the token's user, not app/github-actions. This results in duplicate issues being created.

Fix in Cursor Fix in Web

@philprime philprime marked this pull request as draft October 23, 2025 13:50
Copy link
Contributor

@stephanie-anderson stephanie-anderson left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@philprime philprime marked this pull request as ready for review October 23, 2025 13:53
@philprime
Copy link
Member Author

@sentry review

@cursor
Copy link

cursor bot commented Oct 23, 2025

Bug: Search Fails to Filter by Bot Creator

The search query for existing issues doesn't filter by the github-actions bot creator. This allows it to match any open issue mentioning the PR URL, even if manually created, causing the workflow to incorrectly skip creating a new tracking issue. This defeats the automation's goal of ensuring all unreferenced PRs get a dedicated issue.

Fix in Cursor Fix in Web

@philprime philprime enabled auto-merge (squash) October 28, 2025 16:05
@philprime philprime merged commit 25bf0e7 into main Oct 28, 2025
101 checks passed
@philprime philprime deleted the fix/duplicate-issue-creation-in-pr-automation branch October 28, 2025 16:31
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