check_commits: Check whether the user has at least three commits

Description Usage Arguments Value Examples

View source: R/check_commits.R

Description

Check whether the user has at least three commits

Usage

1
check_commits(repo = ".", branch = usethis::git_branch_default())

Arguments

repo

A character path to the repo to check. Defaults to the working directory.

branch

A string specifying the name of the default branch used for grading.

Value

A logical which indicates whether the repo has 3 commits or not

Examples

1
2
3
4
5
6
## Not run: 
# navigate to a Git directory for a lab, e.g.:
# set_wd("~/mds/lab5")
labzenr:::check_commits()

## End(Not run)

UBC-MDS/labzenr documentation built on March 28, 2021, 1:28 p.m.