github v0.13.0-rc1 Github.Issues.Labels View Source
Issues Labels.
Link to this section Summary
Link to this section Functions
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,
...
}
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,
...
}