Description Usage Arguments Details Value Examples
compare_commits()
summarises the commits made between two commits. It
returns a list of statistics along with a table of the commits with the
properties as columns and a row for each commit. The base
commit must be in
the history of the head
commit.
1 | compare_commits(base, head, repo, ...)
|
base |
(string) Either a SHA, branch or tag used to identify the base commit. |
head |
(string) Either a SHA, branch or tag used to identify the head commit. |
repo |
(string) The repository specified in the format: |
... |
Parameters passed to |
For more details see the GitHub API documentation:
compare_commits()
returns a list of comparison properties.
Comparison Properties:
status: The status of the comparison, can be "ahead"
"behind"
or
"diverged"
.
ahead_by: The number of commits the head
commit is ahead of the
base
commit.
behind_by: The number of commits the head
commit is behind the
base
commit.
total_commits: The total number of commits between the head
commit
and the base
commit.
html_url: The address of the commit comparison web page.
commits: A tibble summarising the commits between the head
commit
and the base
commit.
Commit Properties:
sha: The commit SHA.
message: The commit message.
author_login: The author's account login.
author_name: The author's name.
author_email: The author's email address.
committer_login: The committer's account login.
committer_name: The committer's name.
committer_email: The committer's email address.
tree_sha: The SHA of the commit's file tree.
parents: The SHAs of the parent commits.
date: The time and date the commit was made.
html_url: The address of the commit's web page.
1 2 3 4 5 6 7 | ## Not run:
# View the changes made between the current main branch and a release
compare_commits("main", "0.8.7", "ChadGoymer/githapi")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.