gr2m / gr2m/github-openapi-graphql-query

GraphQL result to query gives a wrong result for a required parameters of `Create Check Run`

Đang mở
#11 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
7
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# Context
Octokit documentation on how to create a Check Run is missing 2 required properties: `name` and `head_sha`. Detailed explanation in Octokit: https://github.com/octokit/plugin-rest-endpoint-methods.js/issues/441

# Where could be the problem?
GitHub's Open API information (the dereferenced one) and Octokit's API dereferenced look good. `name` and `head_sha` are there and are marked as `required`.

Instead of appearing those properties, the result of the query provides a property with `*` as key.

In a quick look of the code I see suspicious the following lines:
https://github.com/gr2m/github-openapi-graphql-query/blob/405891d8cd001f2c126174e6f1bf5f9847213a54/lib/schema-to-parameters.js#L3

and

https://github.com/gr2m/github-openapi-graphql-query/blob/405891d8cd001f2c126174e6f1bf5f9847213a54/lib/schema-to-parameters.js#L56

But I'm not sure if that could be the issue. Any ideas to start digging a bit @gr2m ? :)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.