From 4405720e695ef8f0453391e2ef721b516fd256b0 Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Wed, 18 Jul 2018 08:22:41 -0400 Subject: [PATCH] Add release question to update codemeta.json Fixes #1774 Fixes #1754 --- NEWS.md | 3 +++ R/release.r | 1 + 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 523629c50..ad9b066bc 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # devtools 1.13.3.9000 +* `release()` gains an additional question ensuring you updated codemeta.json + if one exists (#1774, #1754) + * `github_pat()` and `gitlab_pat()` no longer print diagnostic messages by default (#1752). diff --git a/R/release.r b/R/release.r index 464340acd..3ec8e4d32 100644 --- a/R/release.r +++ b/R/release.r @@ -113,6 +113,7 @@ release <- function(pkg = ".", check = FALSE, args = NULL) { "Have you updated `DESCRIPTION`?", "Have you updated `cran-comments.md?`", if (dir.exists("docs/")) "Have you updated website in `docs/`?", + if (file.exists("codemeta.json")) "Have you updated codemeta.json with codemetar::write_codemeta()?", find_release_questions() ) for (question in questions) {