Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.67 KB

columns.md

File metadata and controls

59 lines (38 loc) · 1.67 KB

Repo / Columns API

Back to the "Repos API" | Back to the navigation

Deprecated: GitHub Projects (classic) was sunset on 2024-08-23 and this REST API is no longer part of the current documentation on docs.github.com.

This api is currently only available to developers in Early Access. To access the API during the Early Access period, you must provide a custom media type in the Accept header.

Both repositories and organisations have projects. The api is only different for getting all project or retrieving a single project. All the example use the repository projects column api but this also works form the organization api ($client->api('org_projects')->columns())

$client->api('repo')->projects()->columns()->configure();

List all columns of a project

$columns = $client->api('repo')->projects()->columns()->all($projectId);

List one column

$column = $client->api('repo')->projects()->columns()->show($columnId);

Create a column

Requires authentication.

$column = $client->api('repo')->projects()->columns()->create($projectId, array('name' => 'Column name'));

Edit a column

Requires authentication.

$column = $client->api('repo')->project()->columns()->update($columnId, array('name' => 'New name'));

Remove a column

Requires authentication.

$column = $client->api('repo')->projects()->columns()->deleteColumn($columnId);

Move a column

Requires authentication.

$column = $client->api('repo')->projects()->columns()->move($columnId, array('position' => 'first));