provider projects POST /orgs/{org}/projectsV2/{project_number}/items
@utdk/github /orgs/{org}/projectsV2/{project_number}/items
Add item to organization owned project
Add an issue or pull request item to the specified organization owned project.
org path required
The organization name. The name is not case sensitive.
string
project_number path required
The project's number.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
projects.addItemForOrg
POST/orgs/{org}/projectsV2/{project_number}/items
Add an issue or pull request item to the specified organization owned project.

Parameters

required

The organization name. The name is not case sensitive.

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.

Configure credentials above to enable sending.

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

TypeScript

import github from '@utdk/github';

await github.projects.addItemForOrg()