View Source GitHub.Projects (GitHub REST API Client v0.0.5)

Provides API endpoints related to projects

Link to this section Summary

Functions

Create an organization project

Delete a project card

Delete a project column

Get a project card

Get a project column

List project collaborators

List organization projects

List repository projects

Update an existing project card

Update an existing project column

Link to this section Functions

Link to this function

add_collaborator(project_id, username, body, opts \\ [])

View Source
@spec add_collaborator(integer(), String.t(), map() | nil, keyword()) ::
  :ok | {:error, GitHub.Error.t()}

Add project collaborator

resources

Resources

Link to this function

create_card(column_id, body, opts \\ [])

View Source
@spec create_card(integer(), map(), keyword()) ::
  {:ok, GitHub.Project.Card.t()} | {:error, GitHub.Error.t()}

Create a project card

resources

Resources

Link to this function

create_column(project_id, body, opts \\ [])

View Source
@spec create_column(integer(), map(), keyword()) ::
  {:ok, GitHub.Project.Column.t()} | {:error, GitHub.Error.t()}

Create a project column

resources

Resources

Link to this function

create_for_authenticated_user(body, opts \\ [])

View Source
@spec create_for_authenticated_user(
  map(),
  keyword()
) :: {:ok, GitHub.Project.t()} | {:error, GitHub.Error.t()}

Create a user project

resources

Resources

Link to this function

create_for_org(org, body, opts \\ [])

View Source
@spec create_for_org(String.t(), map(), keyword()) ::
  {:ok, GitHub.Project.t()} | {:error, GitHub.Error.t()}

Create an organization project

resources

Resources

Link to this function

create_for_repo(owner, repo, body, opts \\ [])

View Source
@spec create_for_repo(String.t(), String.t(), map(), keyword()) ::
  {:ok, GitHub.Project.t()} | {:error, GitHub.Error.t()}

Create a repository project

resources

Resources

Link to this function

delete(project_id, opts \\ [])

View Source
@spec delete(
  integer(),
  keyword()
) :: :ok | {:error, GitHub.Error.t()}

Delete a project

resources

Resources

Link to this function

delete_card(card_id, opts \\ [])

View Source
@spec delete_card(
  integer(),
  keyword()
) :: :ok | {:error, GitHub.Error.t()}

Delete a project card

resources

Resources

Link to this function

delete_column(column_id, opts \\ [])

View Source
@spec delete_column(
  integer(),
  keyword()
) :: :ok | {:error, GitHub.Error.t()}

Delete a project column

resources

Resources

Link to this function

get(project_id, opts \\ [])

View Source
@spec get(
  integer(),
  keyword()
) :: {:ok, GitHub.Project.t()} | {:error, GitHub.Error.t()}

Get a project

resources

Resources

Link to this function

get_card(card_id, opts \\ [])

View Source
@spec get_card(
  integer(),
  keyword()
) :: {:ok, GitHub.Project.Card.t()} | {:error, GitHub.Error.t()}

Get a project card

resources

Resources

Link to this function

get_column(column_id, opts \\ [])

View Source
@spec get_column(
  integer(),
  keyword()
) :: {:ok, GitHub.Project.Column.t()} | {:error, GitHub.Error.t()}

Get a project column

resources

Resources

Link to this function

get_permission_for_user(project_id, username, opts \\ [])

View Source
@spec get_permission_for_user(integer(), String.t(), keyword()) ::
  {:ok, GitHub.Project.CollaboratorPermission.t()} | {:error, GitHub.Error.t()}

Get project permission for a user

resources

Resources

Link to this function

list_cards(column_id, opts \\ [])

View Source
@spec list_cards(
  integer(),
  keyword()
) :: {:ok, [GitHub.Project.Card.t()]} | {:error, GitHub.Error.t()}

List project cards

options

Options

  • archived_state (String.t()): Filters the project cards that are returned by the card's state.
  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

list_collaborators(project_id, opts \\ [])

View Source
@spec list_collaborators(
  integer(),
  keyword()
) :: {:ok, [GitHub.User.simple()]} | {:error, GitHub.Error.t()}

List project collaborators

options

Options

  • affiliation (String.t()): Filters the collaborators by their affiliation. outside means outside collaborators of a project that are not a member of the project's organization. direct means collaborators with permissions to a project, regardless of organization membership status. all means all collaborators the authenticated user can see.
  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

list_columns(project_id, opts \\ [])

View Source
@spec list_columns(
  integer(),
  keyword()
) :: {:ok, [GitHub.Project.Column.t()]} | {:error, GitHub.Error.t()}

List project columns

options

Options

  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

list_for_org(org, opts \\ [])

View Source
@spec list_for_org(
  String.t(),
  keyword()
) :: {:ok, [GitHub.Project.t()]} | {:error, GitHub.Error.t()}

List organization projects

options

Options

  • state (String.t()): Indicates the state of the projects to return.
  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

list_for_repo(owner, repo, opts \\ [])

View Source
@spec list_for_repo(String.t(), String.t(), keyword()) ::
  {:ok, [GitHub.Project.t()]} | {:error, GitHub.Error.t()}

List repository projects

options

Options

  • state (String.t()): Indicates the state of the projects to return.
  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

list_for_user(username, opts \\ [])

View Source
@spec list_for_user(
  String.t(),
  keyword()
) :: {:ok, [GitHub.Project.t()]} | {:error, GitHub.Error.t()}

List user projects

options

Options

  • state (String.t()): Indicates the state of the projects to return.
  • per_page (integer): The number of results per page (max 100).
  • page (integer): Page number of the results to fetch.

resources

Resources

Link to this function

move_card(card_id, body, opts \\ [])

View Source
@spec move_card(integer(), map(), keyword()) ::
  {:ok, map()} | {:error, GitHub.Error.t()}

Move a project card

resources

Resources

Link to this function

move_column(column_id, body, opts \\ [])

View Source
@spec move_column(integer(), map(), keyword()) ::
  {:ok, map()} | {:error, GitHub.Error.t()}

Move a project column

resources

Resources

Link to this function

remove_collaborator(project_id, username, opts \\ [])

View Source
@spec remove_collaborator(integer(), String.t(), keyword()) ::
  :ok | {:error, GitHub.Error.t()}

Remove user as a collaborator

resources

Resources

Link to this function

update(project_id, body, opts \\ [])

View Source
@spec update(integer(), map(), keyword()) ::
  {:ok, GitHub.Project.t()} | {:error, GitHub.Error.t()}

Update a project

resources

Resources

Link to this function

update_card(card_id, body, opts \\ [])

View Source
@spec update_card(integer(), map(), keyword()) ::
  {:ok, GitHub.Project.Card.t()} | {:error, GitHub.Error.t()}

Update an existing project card

resources

Resources

Link to this function

update_column(column_id, body, opts \\ [])

View Source
@spec update_column(integer(), map(), keyword()) ::
  {:ok, GitHub.Project.Column.t()} | {:error, GitHub.Error.t()}

Update an existing project column

resources

Resources