To use the GraphQL API to filter issues created by a GitHub App, you can use the following steps:
Authenticate with GitHub using an access token generated for the App.
Write a query to retrieve the issues created by the App. The query can include the following fields:
Here is an example query to retrieve issues created by a specific App:
query AppCreatedIssues($owner: String!, $repo: String!) {
repository(owner: $owner, name: $repo) {
issues(filterBy: { createdByApp: true }) {
nodes {
title
bodyText
author {
login
}
}
}
}
}
The response will include the information of the issues created by the App in the specified repository.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-12-10 11:00:00 +0000
Seen: 10 times
Last updated: Dec 22 '22