Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHubFindIssueIdByNumber #15

Merged

Conversation

sgrove
Copy link
Contributor

@sgrove sgrove commented Jan 8, 2020

Given a repository $repoOwner/$repoName, find the id of an issue by its $number.

Usually users think of "issue #10", but most GitHub GraphQL mutations refer to issues by their id, so you'll find this query quite helpful! For example, you'll need the issue id if you want to Delete a GitHub issue.

To find the id of issue #3 on the OneGraph GraphQL Docs Repository, we could pass in the following variables:

{
  "repoName": "graphql-docs",
  "repoOwner": "OneGraph",
  "number": 3
}

…by its `$number`.

Usually users think of "issue OneGraph#10", but most GitHub GraphQL mutations refer to issues by their id, so you'll find this query quite helpful! For example, you'll need the issue id if you want to [Delete a GitHub issue](GitHubDeleteIssue).


To find the id of issue OneGraph#3 on the [OneGraph GraphQL Docs Repository](OneGraph#1), we could pass in the following variables:
  
  ```javascript
  {
    "repoName": "graphql-docs",
    "repoOwner": "OneGraph",
    "number": 3
  }
  ```
@sgrove sgrove merged commit 02f7ba6 into OneGraph:master Jan 8, 2020
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