Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Property 'POST /repos/{owner}/{repo}/pages/deployment' does not exist on type 'Endpoints'. #737

Closed
1 task done
austenstone opened this issue Apr 26, 2024 · 3 comments
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@austenstone
Copy link

austenstone commented Apr 26, 2024

What happened?

https://github.com/austenstone/copilot-usage/blob/main/package.json

https://github.com/austenstone/copilot-usage/blob/main/package-lock.json

Versions

5.16.2 5.13.0 10.0.0 10.2.0

Relevant log output

> tsc && ncc build src/index.ts -o dist --source-map --license LICENSE

node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:2527:55 - error TS2339: Property 'POST /repos/{owner}/{repo}/pages/deployment' does not exist on type 'Endpoints'.

2527             parameters: RequestParameters & Endpoints["POST /repos/{owner}/{repo}/pages/deployment"]["parameters"];
                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:2528:33 - error TS2339: Property 'POST /repos/{owner}/{repo}/pages/deployment' does not exist on type 'Endpoints'.

2528             response: Endpoints["POST /repos/{owner}/{repo}/pages/deployment"]["response"];
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:2527

Code of Conduct

  • I agree to follow this project's Code of Conduct
@austenstone austenstone added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Apr 26, 2024
Copy link
Contributor

👋 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! 🚀

@wolfy1339
Copy link
Member

This is not a problem with our code. you can't reliably mix multiple versions of Octokit together.

This is due to differing versions of @octokit/types and @octokit/openapi-types which contain all endpoints

@wolfy1339 wolfy1339 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Archived in project
Development

No branches or pull requests

2 participants