Skip to main content

projects

Creates, updates, deletes, gets or lists a projects resource.

Overview​

Nameprojects
TypeResource
Idgithub.projects.projects

Fields​

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idnumberThe unique identifier of the project.
node_idstringThe node ID of the project.
closed_atstring (date-time)The time when the project was closed. (example: 2022-04-28T12:00:00Z)
created_atstring (date-time)The time when the project was created. (example: 2022-04-28T12:00:00Z)
creatorobjectA GitHub user. (title: Simple User)
deleted_atstring (date-time)The time when the project was deleted. (example: 2022-04-28T12:00:00Z)
deleted_byobjectA GitHub user. (title: Simple User)
descriptionstringA short description of the project.
is_templatebooleanWhether this project is a template
latest_status_updateobjectAn status update belonging to a project (title: Projects v2 Status Update)
numberintegerThe project number.
ownerobjectA GitHub user. (title: Simple User)
publicbooleanWhether the project is visible to anyone with access to the owner.
short_descriptionstringA concise summary of the project.
statestringThe current state of the project. (open, closed)
titlestringThe project title.
updated_atstring (date-time)The time when the project was last updated. (example: 2022-04-28T12:00:00Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_for_orgselectproject_number, orgGet a specific organization-owned project.
get_for_userselectproject_number, usernameGet a specific user-owned project.
list_for_orgselectorgq, before, after, per_pageList all projects owned by a specific organization accessible by the authenticated user.
list_for_userselectusernameq, before, after, per_pageList all projects owned by a specific user accessible by the authenticated user.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
project_numberintegerThe project's number.
usernamestringThe handle for the GitHub user account.
afterstringA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
beforestringA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
qstringLimit results to projects of the specified type.

SELECT examples​

Get a specific organization-owned project.

SELECT
id,
node_id,
closed_at,
created_at,
creator,
deleted_at,
deleted_by,
description,
is_template,
latest_status_update,
number,
owner,
public,
short_description,
state,
title,
updated_at
FROM github.projects.projects
WHERE project_number = '{{ project_number }}' -- required
AND org = '{{ org }}' -- required
;