gl_get_commits: Get commits and diff from a project repository

View source: R/projects_and_repos.R

gl_get_commitsR Documentation

Get commits and diff from a project repository

Description

Get commits and diff from a project repository

Usage

gl_get_commits(project, commit_sha = c(), ...)

gl_get_diff(project, commit_sha, ...)

Arguments

project

id (preferred way) or name of the project. Not repository name.

commit_sha

if not null, get only the commit with the specific hash; for gl_get_diff() this must be specified

...

passed on to gitlab() API call, may contain ref_name for specifying a branch or tag to list commits of

Value

Tibble of commits or diff of the branch with informative variables.

Examples

## Not run: 
my_commits <- gl_get_commits("<<your-project-id>>")
gl_get_commits("<<your-project-id>>", my_commits$id[1])

## End(Not run)

gitlabr documentation built on June 22, 2024, 11:34 a.m.