-
Notifications
You must be signed in to change notification settings - Fork 59
export dist-src/generated/endpoints.js? #725
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
Comments
👋 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 |
What is your use case? The |
Good point. I am trying to combine knowledge about Octokit rest methods along with the We can inspect the rest.js |
I wouldn't implement that check at runtime, at least not in core octokit, but at build/test time it would be pretty cool! All the structured data exists in https://github.com/octokit/openapi but it is rather hard to get the data out of it, that's why I created https://github.com/gr2m/github-openapi-graphql-query at some point to create a central place to make the data we need easier to access. Just so I understand your use case:
I think what would might be a better approach is to statically analyzing code to extract the REST API endpoints that are being requested, then use I wanted to build something like this for @octoherd so that we can automatically derive required permissions for scripts. Happy to think about this some more and help build some kind of prototype if you like. If traversing an AST tree is overkill, we might also utilize tests and just gather all REST API endpoints that are used based on all tests to derive the list of unique REST API endpoints. This whole thing falls apart however when you introduce GraphQL queries |
Probably doing this wrong I mean this doesn't pay what's the purpose? |
I'd love to be able to use the contents of
dist-src/generated/endpoints.js
as an import in my ESM project, but unless I am doing something wrong, I haven't found a way and am instead copying that file at runtime and vendoring it in my project, since the project is only exporting the endpoints to methods and not the raw data.Happy to contribute an export but also may just be doing this wrong so asking the basic question here first...
The text was updated successfully, but these errors were encountered: