fix(action): Fix detection of existing publish issues#728
Merged
Conversation
The jq filter for matching issue titles was using shell variable interpolation inside the -q flag, which can cause escaping issues with special characters like @ in version strings. Fix by piping to external jq with --arg to safely pass the title variable, avoiding any escaping or interpolation issues.
83d0b4a to
1f507dd
Compare
b02d0be to
1759485
Compare
Replace GitHub search API with listing all open issues and filtering by exact title match using jq. This avoids: - Search indexing delays that could cause duplicate issues - Query syntax edge cases with special characters like @
9720722 to
b7c9f5a
Compare
betegon
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace GitHub search API with listing all open issues and filtering by exact title match.
Problem
The release action was supposed to detect existing publish issues and skip creating duplicates. However, duplicate issues were being created (e.g.,
getsentry/publish#6972and#6973forcli@0.2.0).Root Cause
The GitHub search API has indexing delays and query syntax edge cases that can cause the search to miss recently created issues or fail to match titles with special characters like
@.Solution
Instead of using GitHub search:
Simply list all open issues and filter client-side:
This approach: