Skip to content

fix(scripts/gh.sh): reject empty query for search issues command#68682

Open
AZERDSQ131 wants to merge 2 commits into
anthropics:mainfrom
AZERDSQ131:fix/gh-script-empty-search-query
Open

fix(scripts/gh.sh): reject empty query for search issues command#68682
AZERDSQ131 wants to merge 2 commits into
anthropics:mainfrom
AZERDSQ131:fix/gh-script-empty-search-query

Conversation

@AZERDSQ131

@AZERDSQ131 AZERDSQ131 commented Jun 15, 2026

Copy link
Copy Markdown

No description provided.

AZERDSQ131 and others added 2 commits June 15, 2026 22:55
- lock-closed-issues.yml: change `issues.length === 0` to `issues.length < 100`
  so the last partial page terminates the loop immediately instead of
  making an extra empty API call first
- claude-dedupe-issues.yml: replace explicit `200 || 202` check with
  `>= 200 && < 300` to accept any 2xx success code (e.g. 201, 204)
  from the Statsig event endpoint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without this guard, calling `./scripts/gh.sh search issues` or passing
an empty string sends an unfiltered `gh search issues ""` request to
the GitHub API, which returns thousands of results or an API error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant