if (FALSE) {
git("status", "-s")
get_commit_msgs()
get_commit_msgs(n = 3)
get_pr_msgs()
# lint most recent 3 commit message
lapply(get_commit_msgs(n = 3), lint_commit_msg)
# for a PR `branch` -> `remotes/origin/{main,master}`
lapply(get_pr_msgs(), lint_commit_msg) # current branch
lapply(get_pr_msgs("feature"), lint_commit_msg) # `feature` branch
get_recent_tag()
}
Run the code above in your browser using DataLab