octokit / octokit.js

The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.
MIT License
6.93k stars 1.01k forks source link

[FEAT]: support discussions #2489

Closed itaysk closed 1 year ago

itaysk commented 1 year ago

Describe the need

support to interact with GitHub discussions. it has been discussed https://github.com/octokit/octokit.js/issues/886 but never implemented.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

wolfy1339 commented 1 year ago

We don't manually implement the methods. They are all automatically generated from GitHub's OpenAPI spec.

If they aren't present there, they won't be here either.

You can always use the route you want to use directly using @octokit/request (which is included in this package)

gr2m commented 1 year ago

It has been discussed #886 but never implemented

The discussions endpoints hat have been discussed in this issue have been changed since, instead of /teams/{team_id/... it's now /orgs/{org}/teams/{team_slug}/.... The methods all exist on octokit.rest.teams.*, e.g. octokit.rest.teams.getDiscussionInOrg().

Note that team discussions are being defunkt.