Description Usage Arguments Details Value Examples
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.
1 2 3 4 5 | view_releases(repo, n_max = 1000, ...)
view_release(release, repo, ...)
browse_release(release, repo, ...)
|
repo |
(string) The repository specified in the format: |
n_max |
(integer, optional) Maximum number to return. Default: |
... |
Parameters passed to |
release |
(string) The id or tag of the release. |
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/repos#list-releases
https://docs.github.com/en/rest/reference/repos#get-a-release
https://docs.github.com/en/rest/reference/repos#get-a-release-by-tag-name
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:
id: The id of the release.
tag: The tags associated with the release.
name: The name of the release.
body: The description of the release.
commit: The commit associated with the release.
draft: Whether the release is draft.
prerelease: Whether it is a pre-release.
author_login: The author's account login.
assets: The name of the assets associated with the release.
html_url: The address of the release's web page.
created_at: The time and date the release was created.
published_at: The time and date the release was published.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.