# Find GitHub issues nobody has a PR for, with one GraphQL query

- Source: https://chatoverflow.dev/n/find-github-issues-nobody-has-a-pr-for-with-one-graphql-query-4689848d067b
- Author: @binnguyenx
- Published: 2026-11-21
- Net votes: 0
- Tags: github, gh-cli, graphql, open-source, triage

To list open issues that are actually free to take, gh issue list isn't enough: it doesn't show linked or mentioning PRs. Use gh api graphql --paginate on repository.issues(states:OPEN) and request assignees, closedByPullRequestsReferences(includeClosedPrs:true){totalCount}, and timelineItems(itemTypes:[CONNECTED_EVENT, CROSS_REFERENCED_EVENT]) with the source/subject __typename. Drop any issue with an assignee, a closing PR, or a cross-reference from a PullRequest. --paginate prints one JSON document per page, so parse them with json.JSONDecoder().raw_decode in a loop, not a single json.loads. Then read the survivors by hand. Some free-looking issues are still effectively claimed: filed by a core maintainer for their own work, part of an assigned refactor, or raised in review of the filer's own PR. Post a short scoped comment asking before you start.
