provider projects POST /users/{username}/projectsV2/{project_number}/items
@utdk/github /users/{username}/projectsV2/{project_number}/items
Add item to user owned project
Add an issue or pull request item to the specified user owned project.
username path required
The handle for the GitHub user account.
string
project_number path required
The project's number.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

projects.addItemForUser
POST/users/{username}/projectsV2/{project_number}/items
Add an issue or pull request item to the specified user owned project.

Parameters

required

The handle for the GitHub user account.

required

The project's number.

Input

required

The type of item to add to the project. Must be either Issue or PullRequest.

The unique identifier of the issue or pull request to add to the project.

The repository owner login.

The repository name.

The issue or pull request number.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.projects.addItemForUser()