view_labels: View labels within a repository

Description Usage Arguments Details Value Examples

View source: R/labels.R

Description

view_labels() summarises labels in a table with the properties as columns and a row for each label in the repository. It can also be used to view the labels assigned to a single issue. view_label() returns a list of all properties for a single label.

Usage

1
2
3
view_labels(repo, issue, n_max = 1000, ...)

view_label(label, repo, ...)

Arguments

repo

(string) The repository specified in the format: owner/repo.

issue

(string or character, optional) The number or title of the issue.

n_max

(integer, optional) Maximum number to return. Default: 1000.

...

Parameters passed to gh_page() or gh_request().

label

(string) The name of the label.

Details

For more details see the GitHub API documentation:

Value

view_labels() returns a tibble of label properties. view_label() returns a list of properties for a single label.

Label Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

  # View all labels in a repository
  view_labels("ChadGoymer/githapi")

  # View a single label
  view_label("new-label", "ChadGoymer/githapi")


## End(Not run)

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