add_labels: Add or remove labels from an issue or pull request

Description Usage Arguments Details Value Examples

View source: R/labels.R

Description

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.

Usage

1
2
3
add_labels(labels, issue, repo, ...)

remove_labels(labels, issue, repo, ...)

Arguments

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: owner/repo.

...

Parameters passed to gh_request().

Details

For more details see the GitHub API documentation:

Value

add_labels() returns a tibble of the added labels properties. remove_labels() returns a tibble of the remaining labels properties.

Label Properties:

Examples

 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)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.