octokit / octokit.graphql.net

A GitHub GraphQL client library for .NET
MIT License
143 stars 50 forks source link

[BUG]: EnablePullRequestAutoMergeInput failing using v0.2.1-beta with GHES 3.8.4 #302

Open martincostello opened 1 year ago

martincostello commented 1 year ago

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 the following exception:

Octokit.GraphQL.Core.Deserializers.ResponseDeserializerException: InputObject 'EnablePullRequestAutoMergeInput' doesn't accept argument 'expectedHeadOid'
   at Octokit.GraphQL.Core.Deserializers.ResponseDeserializer.Deserialize[TResult](Func`2 deserialize, JObject data)
   at Octokit.GraphQL.Core.SimpleQuery`1.Runner.RunPage(CancellationToken cancellationToken)
   at Octokit.GraphQL.ConnectionExtensions.Run[T](IConnection connection, ICompiledQuery`1 query, Dictionary`2 variables, CancellationToken cancellationToken)

This appears to have been added by https://github.com/octokit/octokit.graphql.net/commit/3f5eaa072f3ac0498bcf0f28de914b5f83f29481#diff-cf7ac8c5e36ed6761cce0393cc816f53b1cb638369577d730bf568ead8b8ee6e.

Versions

0.2.1-beta

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 1 year ago

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

martincostello commented 10 months ago

I'm going to leave this open (unless fixed I guess it can be closed when GHES 3.8 goes out of support), but after upgrading to both the 0.3.0-beta package and GitHub Enterprise 3.9 this specific issue is no longer affecting my application.