We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6da1da commit a11b4b8Copy full SHA for a11b4b8
.pre-commit-config.yaml
@@ -56,3 +56,9 @@ repos:
56
language: fail
57
files: '\.Rhistory|\.RData|\.Rds|\.rds$'
58
# `exclude: <regex>` to allow committing specific files.
59
+ - id: require-news-on-push
60
+ name: Require bullet in NEWS.md
61
+ description: NEWS.md must be updated with every PR.
62
+ entry: inst/hooks/require-news-update.R
63
+ stages: [push]
64
+ language: script
inst/hooks/require-news-update.R
@@ -0,0 +1,5 @@
1
+#! /usr/local/bin/Rscript
2
+args <- commandArgs(trailingOnly = TRUE)
3
+if (!any(args == "NEWS.md")) {
4
+ rlang::abort("Must have a news entry before pushing.")
5
+}
0 commit comments