✨ Add graphql support and add first graphql endpoint#21
Merged
IamPekka058 merged 7 commits intomainfrom Aug 17, 2025
Merged
Conversation
Friedinger
approved these changes
Aug 17, 2025
Ruby11235
approved these changes
Aug 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces GraphQL support to the GitHub client library and adds the ability to delete issues using the GitHub GraphQL API. The main changes include adding a new
GraphQLService, updating theGitHubclient to expose GraphQL functionality, extending theIssuesServicewith adeleteIssuemethod, and adding unit tests for issue deletion.GraphQL Integration:
GraphQLServiceclass (lib/src/common/graphql_service.dart) to handle GraphQL queries and mutations, using thegraphqlpackage.GitHubclient (lib/src/common/github.dart) to include agraphqlgetter, providing access to the new GraphQL service. [1] [2] [3]graphqlpackage as a dependency inpubspec.yaml.Issue Deletion Feature:
deleteIssuemethod inIssuesService(lib/src/services/issues_service.dart) that deletes issues via the GraphQL API, since this functionality is not available in the REST API.Testing Enhancements:
GitHubandGraphQLServicein the unit tests, and introduced tests for the newdeleteIssuemethod, covering both success and failure scenarios (test/unit/issues_test.dart). [1] [2] [3]