Description Usage Arguments Details Value Examples
view_branches()
summarises branches in a table with the properties as
columns and a row for each branch in the repository. view_branch()
returns
a list of all properties for a single branch.
1 2 3 | view_branches(repo, n_max = 1000, ...)
view_branch(branch, repo, ...)
|
repo |
(string) The repository specified in the format: |
n_max |
(integer, optional) Maximum number to return. Default: |
... |
Parameters passed to |
branch |
(string) The name of the branch. |
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/repos#list-branches
https://docs.github.com/en/rest/reference/repos#get-a-branch
view_branches()
returns a tibble of branch properties.
view_branch()
returns a list of properties for a single branch.
Branch Properties:
name: The name of the branch.
sha: The commit SHA the branch is pointing at.
protected: Whether the branch is protected.
html_url: The address of the branch's web page in GitHub.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# View all branches in a repository
view_branches(repo = "ChadGoymer/githapi")
# View a single branch
view_branch(branch = "new-branch", repo = "ChadGoymer/githapi")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.