Skip to content

Commit cac5ec5

Browse files
check with upstream diff
1 parent cccc4f5 commit cac5ec5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

inst/hooks/require-news-update.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#! /usr/local/bin/Rscript
2-
args <- commandArgs(trailingOnly = TRUE)
2+
args <- system2(
3+
"git",
4+
c("diff", "upstream/master", "--name-only"),
5+
stdout = TRUE
6+
)
7+
38
if (!any(args == "NEWS.md")) {
49
rlang::abort("Must have a news entry before pushing.")
510
}

0 commit comments

Comments
 (0)