You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh api proposal: enable GraphQL operations without having to know GraphQL IDs #3549
The problem is that the user typically needs to know GraphQL IDs of the objects they want to operate on. That means that every GraphQL mutation is usually preceded by a GraphQL query (or few) that gather these IDs. To have to do this via gh api every time is tedious.
This proposes a new syntax to be able to pass human-readable values to gh api and have it resolve them to GraphQL IDs internally:
gh api graphql -F repoId="id:cli/cli" -F labelId="id:help wanted" -f query='...'
I have actually no idea what the syntax for labels could be, but repositories would be identified by the typical owner/repo pair, users by @handle, teams like @org/team-slug, issues like owner/repo#123, etc.
Activity