Skip to content

[Feature]: Use GraphQL for fetching GitHub Pull Requests #84

@Malcolmnixon

Description

@Malcolmnixon

Problem Statement

The Octokit client.PullRequest.GetAllForRepository needs to be replaced with GraphQL

Proposed Solution

Replace the client.PullRequest.GetAllForRepository calls with a call to a new GitHubGraphQLClient.GetPullRequests which uses GraphQL. Note that the Octokit query uses State = ItemStateFilter.All to get pull requests in any state (open, closed, etc.) and the GraphQL can just hard-code the query to get all.
The new GraphQL records can be created in GitHubGraphQLTypes.cs
The new tests should be implemented in a GitHubGraphQLClientGetPullRequestsTests.cs file

Alternatives Considered

No response

Usage Examples

Benefits

More removal of Octokit usage.

Priority

Medium - Would improve my workflow

Willingness to Contribute

Yes, I can submit a pull request

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have provided a clear description of the feature
  • I have explained why this feature would be useful

Metadata

Metadata

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions