Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project admin
to add a collaborator.
octokit.projects.addCollaborator({project_id,username,});
name | required | description |
---|---|---|
project_id | yes | |
username | yes | |
permission | no | The permission to grant the collaborator. |
See also: GitHub Developer Guide documentation.
Note: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the pull_request
key.
Be aware that the id
of a pull request returned from "Issues" endpoints will be an issue id. To find out the pull request id, use the "List pull requests" endpoint.
octokit.projects.createCard({column_id,note,content_id,content_type,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
note | yes | The project card's note |
content_id | yes | The unique identifier of the content associated with the card |
content_type | yes | The piece of content associated with the card |
See also: GitHub Developer Guide documentation.
octokit.projects.createColumn({project_id,name,});
name | required | description |
---|---|---|
project_id | yes | |
name | yes | Name of the project column |
See also: GitHub Developer Guide documentation.
octokit.projects.createForAuthenticatedUser({name,});
name | required | description |
---|---|---|
name | yes | Name of the project |
body | no | Body of the project |
See also: GitHub Developer Guide documentation.
Creates an organization project board. Returns a 404 Not Found
status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.createForOrg({org,name,});
name | required | description |
---|---|---|
org | yes | |
name | yes | The name of the project. |
body | no | The description of the project. |
See also: GitHub Developer Guide documentation.
Creates a repository project board. Returns a 404 Not Found
status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.createForRepo({owner,repo,name,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
name | yes | The name of the project. |
body | no | The description of the project. |
See also: GitHub Developer Guide documentation.
Deletes a project board. Returns a 404 Not Found
status if projects are disabled.
octokit.projects.delete({project_id,});
name | required | description |
---|---|---|
project_id | yes |
See also: GitHub Developer Guide documentation.
octokit.projects.deleteCard({card_id,});
name | required | description |
---|---|---|
card_id | yes | card_id parameter |
See also: GitHub Developer Guide documentation.
octokit.projects.deleteColumn({column_id,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
See also: GitHub Developer Guide documentation.
Gets a project by its id
. Returns a 404 Not Found
status if projects are disabled. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.get({project_id,});
name | required | description |
---|---|---|
project_id | yes |
See also: GitHub Developer Guide documentation.
octokit.projects.getCard({card_id,});
name | required | description |
---|---|---|
card_id | yes | card_id parameter |
See also: GitHub Developer Guide documentation.
octokit.projects.getColumn({column_id,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
See also: GitHub Developer Guide documentation.
Returns the collaborator's permission level for an organization project. Possible values for the permission
key: admin
, write
, read
, none
. You must be an organization owner or a project admin
to review a user's permission level.
octokit.projects.getPermissionForUser({project_id,username,});
name | required | description |
---|---|---|
project_id | yes | |
username | yes |
See also: GitHub Developer Guide documentation.
octokit.projects.listCards({column_id,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
archived_state | no | Filters the project cards that are returned by the card's state. Can be one of |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project admin
to list collaborators.
octokit.projects.listCollaborators({project_id,});
name | required | description |
---|---|---|
project_id | yes | |
affiliation | no | Filters the collaborators by their affiliation. Can be one of: |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.projects.listColumns({project_id,});
name | required | description |
---|---|---|
project_id | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists the projects in an organization. Returns a 404 Not Found
status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.listForOrg({org,});
name | required | description |
---|---|---|
org | yes | |
state | no | Indicates the state of the projects to return. Can be either |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists the projects in a repository. Returns a 404 Not Found
status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.listForRepo({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
state | no | Indicates the state of the projects to return. Can be either |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.projects.listForUser({username,});
name | required | description |
---|---|---|
username | yes | |
state | no | Indicates the state of the projects to return. Can be either |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.projects.moveCard({card_id,position,});
name | required | description |
---|---|---|
card_id | yes | card_id parameter |
position | yes | The position of the card in a column |
column_id | no | The unique identifier of the column the card should be moved to |
See also: GitHub Developer Guide documentation.
octokit.projects.moveColumn({column_id,position,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
position | yes | The position of the column in a project |
See also: GitHub Developer Guide documentation.
Removes a collaborator from an organization project. You must be an organization owner or a project admin
to remove a collaborator.
octokit.projects.removeCollaborator({project_id,username,});
name | required | description |
---|---|---|
project_id | yes | |
username | yes |
See also: GitHub Developer Guide documentation.
Updates a project board's information. Returns a 404 Not Found
status if projects are disabled. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
octokit.projects.update({project_id,});
name | required | description |
---|---|---|
project_id | yes | |
name | no | Name of the project |
body | no | Body of the project |
state | no | State of the project; either 'open' or 'closed' |
organization_permission | no | The baseline permission that all organization members have on this project |
private | no | Whether or not this project can be seen by everyone. |
See also: GitHub Developer Guide documentation.
octokit.projects.updateCard({card_id,});
name | required | description |
---|---|---|
card_id | yes | card_id parameter |
note | no | The project card's note |
archived | no | Whether or not the card is archived |
See also: GitHub Developer Guide documentation.
octokit.projects.updateColumn({column_id,name,});
name | required | description |
---|---|---|
column_id | yes | column_id parameter |
name | yes | Name of the project column |
See also: GitHub Developer Guide documentation.