Source
yaml
id: graphql-query-github
namespace: company.team
tasks:
  - id: get_github_issues
    type: io.kestra.plugin.graphql.Request
    uri: https://api.github.com/graphql
    headers:
      Authorization: "Bearer {{ secret('GITHUB_TOKEN') }}"
    query: |
      query {
        repository(owner: "kestra-io", name: "kestra") {
          issues(last: 20, states: CLOSED) {
            edges {
              node {
                title
                url
                labels(first: 5) {
                  edges {
                    node {
                      name
                    }
                  }
                }
              }
            }
          }
        }
      }
About this blueprint
API
This flow queries the GitHub GraphQL API for the 20 most recent closed issues in the kestra-io/kestra repository, returning each issue's title, URL, and first 5 labels.
More Related Blueprints