github v0.13.0-rc1 Github.Issues.Labels View Source

Issues Labels.

Link to this section Summary

Link to this section Functions

Link to this function add_to_issue!(github_client, options) View Source

Add labels to an issue

Example

iex> client = %Github.Client{access_token: "access_token"}

iex> client |> Github.Issues.Labels.add_to_issue!(
  repo_path: "WorkflowCI/github",
  issue_number: 1,
  labels: ["stale"]
)
%Github.Client.Response{
  body: [%{"name" => "stale", ...}],
  status: 200,
  ...
}
Link to this function create!(github_client, options) View Source

Create a label

Example

iex> client = %Github.Client{access_token: "access_token"}

iex> client |> Github.Issues.Labels.create!(
  repo_path: "WorkflowCI/github",
  name: "stale",
  color: "FFA700",
  description: "Inactive"
)
%Github.Client.Response{
  body: %{"name" => "stale", ...},
  status: 201,
  ...
}
Link to this function remove_from_issue!(github_client, options) View Source

Remove a label from an issue

Example

iex> client = %Github.Client{access_token: "access_token"}

iex> client |> Github.Issues.Labels.remove_from_issue!(
  repo_path: "WorkflowCI/github",
  issue_number: 1,
  name: "stale"
)
%Github.Client.Response{
  body: [],
  status: 200,
  ...
}