sincecutoff.com
← all changes

GitHub GraphQL API adds repository issue-creation policy fields

Introduced 2026-06-10 · score 0.96

HOW TO USE IT

When inspecting a repository’s issue-creation policy, query `issueCreationPolicy` and `viewerCanCreateIssues` to retrieve the policy and whether the current user can create issues.

query { repository(owner: "<owner>", name: "<repository>") { issueCreationPolicy viewerCanCreateIssues } }

WHY THIS HELPS

Inspect a repository's issue-creation policy and whether the viewer can create issues.

REQUIREMENTS AND LIMITATIONS

  • owner (required): Repository owner login or organization name, passed to `repository(owner:)`.
  • repository (required): Repository name, passed to `repository(name:)`.
  • issueCreationPolicy: Repository field; policy controlling who can create issues. `ALL` means anyone; `COLLABORATORS_ONLY` means only collaborators.
  • viewerCanCreateIssues: Repository field indicating whether the current user can create issues.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card