quarkusio / quarkus-github-bot

A Quarkus-powered GitHub App to simplify issues and pull requests management in the Quarkus project.
Apache License 2.0
23 stars 24 forks source link

Use linked issues API to get linked issues #292

Closed nicolasgras closed 1 year ago

nicolasgras commented 1 year ago

This pull request resolves #194.

Linked issues of a pull request are extracted from its description, but also with Github GraphQL Api.

The GraphQL request body is:

query($owner: String! $repoName: String! $prNumber: Int!) {
  repository(owner: $owner, name: $repoName) {
    pullRequest(number: $prNumber) {
      closingIssuesReferences(first: 50) {
        edges {
          node {
            number
          }
        }
      }
    }
  }
}

In IssueExtractor class, the results of these 2 metods are merged.

nicolasgras commented 1 year ago

No worries. Thanks for the review and the merge :)