github_sha: Get the SHA for the commit referenced by a tag or branch

Description Usage Arguments Value

View source: R/repositories.R

Description

Get the SHA for the commit referenced by a tag or branch

Usage

1
github_sha(ref, repo, api = getOption("github.api"), ...)

Arguments

ref

(string) tag or branch, if a branch is specified the HEAD commit is used.

repo

(string) The repository specified as "owner/repo".

api

(string, optional) The address to GitHub's API. Default: Uses the option github.api.

...

Parameters passed to gh_page.

Value

A list describing the commit (see GitHub's API documentation for details).


ChadGoymer/github documentation built on June 1, 2017, 5:17 p.m.