Description Usage Arguments Details Value Examples
add_labels()
adds labels to an existing issue or pull request within a
GitHub repository. remove_labels()
removes labels from an issue or pull
request.
1 2 3 | add_labels(labels, issue, repo, ...)
remove_labels(labels, issue, repo, ...)
|
labels |
(character) The name of the labels. |
issue |
(string or character) The number or title of the issue. |
repo |
(string) The repository specified in the format: |
... |
Parameters passed to |
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/issues#add-labels-to-an-issue
https://docs.github.com/en/rest/reference/issues#remove-a-label-from-an-issue
add_labels()
returns a tibble of the added labels properties.
remove_labels()
returns a tibble of the remaining labels properties.
Label Properties:
name: The name of the label.
color: The color of the label in hexidecimal code.
description: The description of the label.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
add_labels(
labels = c("feature", "new-label"),
issue = "Test issue",
repo = "ChadGoymer/githapi"
)
remove_labels(
labels = c("feature", "new-label"),
issue = "Test issue",
repo = "ChadGoymer/githapi"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.