Description Usage Arguments Details Value Examples
This function creates a new label for issues and pull requests for the specified repository in GitHub. It can also be used to set the colour and description.
1 | create_label(name, repo, description, color = random_color(), ...)
|
name |
(string) The name of the label. |
repo |
(string) The repository specified in the format: |
description |
(string, optional) A description of the label. |
color |
(string, optional) Either the color name (see
|
... |
Parameters passed to |
For more details see the GitHub API documentation:
create_label()
returns a list of the label's 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 | ## Not run:
create_label(
name = "new-label",
repo = "ChadGoymer/githapi",
color = "blue",
description = "This is a detailed label"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.