Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

The GitHub Issues API defaults to returning only open issues. The workflow wasn't finding any closed issues to check for PR references.

Added ?state=closed to the API call to fetch closed issues.

Root Cause

# Without state param - returns nothing (only open issues)
gh api repos/CodingWithCalvin/VSToolbox/issues -q '.[] | select(.state == "closed")'

# With state=closed - returns closed issues
gh api "repos/CodingWithCalvin/VSToolbox/issues?state=closed" -q '.[]'

@CalvinAllen CalvinAllen merged commit e27bd60 into main Dec 31, 2025
2 checks passed
@CalvinAllen CalvinAllen deleted the fix/contributors-closed-issues branch December 31, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants