octokit / octokit.js

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

[FEAT]: API support for new Project #2397

Closed vadorvatsal closed 1 year ago

vadorvatsal commented 1 year ago

Describe the need

When I am running

for my paid organization, it returns empty list []

As I see in documentation that current API only supports Project (classic) .

Can we have feature which supports new Project and have all current functionality of boards, columns, cards and other API for it?

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

timrogers commented 1 year ago

At the moment, the new GitHub Projects is only supported in the GraphQL API, so you’d need to use GraphQL queries instead. There is a separate Octokit package which helps with GraphQL requests. Hope that helps!

From: Vatsal @.> Date: Friday, 10 February 2023 at 08:51 To: octokit/octokit.js @.> Cc: Subscribed @.***> Subject: [octokit/octokit.js] [FEAT]: API support for new Project (Issue #2397) Describe the need

When I am running gh api -H "Accept: application/vnd.github+json" /orgs//teams//projects command for my paid organization, it returns empty list []

As I see in documentationhttps://docs.github.com/en/rest/projects/projects?apiVersion=2022-11-28#list-organization-projects that current API only supports Project (classic) .

Can we have feature which supports new Project and have all current functionality of boards, columns, cards and other API for it?

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

— Reply to this email directly, view it on GitHubhttps://github.com/octokit/octokit.js/issues/2397, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAA4LJRNGFC7VG6G4DYCUI3WWXQQHANCNFSM6AAAAAAUXOBYQI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

vadorvatsal commented 1 year ago

@timrogers Is it https://github.com/octokit/graphql.js that you're referring to?

wolfy1339 commented 1 year ago

Can we have feature which supports new Project and have all current functionality of boards, columns, cards and other API for it?

We don't have control over GitHub's API, we only provide an API client.

If you would like to suggest new features, at the following page: https://github.com/orgs/community/discussions/categories/api-and-webhooks

timrogers Is it https://github.com/octokit/graphql.js that you're referring to?

That would be it. Also note, it is included in the octokit and @octokit/core packages

gr2m commented 1 year ago

You might find https://github.com/gr2m/github-project/ useful, it's built on top of octokit, to make it easier to interact with a new Project (v2)