octokit.graphql.net
octokit.graphql.net copied to clipboard
A GitHub GraphQL client library for .NET
When learning the framework it would be handy to have an easy way to show the compiled GraphQL query for a particular expression. At the moment: ```cs var query =...
**problem** Following example: ```csharp var query = new Query() .Search("is:pr is:open org:whatever", SearchType.Issue) .AllPages() .Select(r => r.Switch(when => when.PullRequest(p => new { p.Title }))) .Compile(); Console.WriteLine(query); ``` fails in runtime...
BREAKING CHANGE: target .NET 6.0. Builds the project on .NET 8. Also makes the following changes of @0xced's from #304: * Update test projects from .NET Core 3.1 (out of...
* Update test projects from .NET Core 3.1 (out of support) to .NET 6 (LTS) * Remove `` (see https://github.com/Microsoft/vstest/issues/472#issuecomment-378811616) * Remove `7.2` on test projects * Fix `Run_Specifies_Cancellation_Token` which...
### What happened? I updated an internal application using Octokit.GraphQL to `0.2.1-beta` from `0.2.0-beta` and now trying to enable auto-merge of pull request with GitHub Enterprise Server 3.8.4 fails with...
### What happened? When performing an UpdateProjectV2ItemFieldValue mutation the response returns with a `ProjectV2FieldValue has the wrong arguments error` ```C# var updateStatusQuery = new Mutation().UpdateProjectV2ItemFieldValue( new UpdateProjectV2ItemFieldValueInput { FieldId =...
### Describe the need I am unable to unit test when working with the Run< T > IConnection extension. I am injecting a custom HTTPClient into the connection class but...
Running this query: ```cs public static readonly ICompiledQuery GetAllCommitsForRepo = new Query() .Repository(Var("repoName"), Var("repoOwner")) .DefaultBranchRef .Target .Cast() .History(first: 100, after: Var("after")) .Select(connection => new GQLPagedResponse { HasNextPage = connection.PageInfo.HasNextPage, EndCursor...
I need to use both octokit.net and octokit.graphql.net in the same project and I wish I could more easily share authorization tokens between both SDKs. I've written an `ICredentialStore` to...
### What happened? The following code should create a new repository ruleset query that restricts branch updates on the default branch to PRs with passing status checks named `ng test`...