get_latest_commit | R Documentation |
get_latest_commit
get_latest_commit(org, repo, branch = NULL)
org |
Github organization |
repo |
Github repository |
branch |
Branch from which to get latest commit |
Details of latest commit including OID hash
This returns the latest commit from the default branch as specified on
GitHub, which will not necessarily be the same as information returned from
gert::git_info
if the HEAD
of a local repository does not point to the
same default branch.
Other github:
get_default_github_branch()
,
get_gh_token()
,
use_github_action_pkgcheck()
## Not run:
org <- "ropensci-review-tools"
repo <- "pkgcheck"
commit <- get_latest_commit (org, repo)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.