view_releases: View releases within a repository

Description Usage Arguments Details Value Examples

View source: R/releases.R

Description

view_releases() summarises releases in a table with the properties as columns and a row for each release in the repository. view_release() returns a list of all properties for a single release. browse_release() opens the web page for the release in the default browser.

Usage

1
2
3
4
5
view_releases(repo, n_max = 1000, ...)

view_release(release, repo, ...)

browse_release(release, repo, ...)

Arguments

repo

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

n_max

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

...

Parameters passed to gh_page() or gh_request().

release

(string) The id or tag of the release.

Details

For more details see the GitHub API documentation:

Value

view_releases() returns a tibble of release properties. view_release() returns a list of properties for a single release. browse_release opens the default browser on the release page and returns the URL.

Release Properties:

Examples

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

  # View all releases in a repository
  view_releases("ChadGoymer/githapi")

  # View a single release
  view_release("1.0.1", "ChadGoymer/githapi")

  # Browse the release web page
  browse_release("1.0.1", "ChadGoymer/githapi")


## End(Not run)

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