Skip to content

Commit

Permalink
Add link to NEWS.md when it exists, remove it when it doesn't.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Dec 12, 2023
1 parent f4071f1 commit 35480a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/news.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ use_news_heading <- function(version) {
if (development_title == news[[1]]) {
news[[1]] <- title

ui_done("Replacing development heading in NEWS.md")
ui_done("Replacing development heading in {.file NEWS.md}")
return(write_utf8(news_path, news))
}

ui_done("Adding new heading to NEWS.md")
ui_done("Adding new heading to {.file NEWS.md}")
write_utf8(news_path, c(title, "", news))
}
2 changes: 1 addition & 1 deletion R/release.R
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ get_release_news <- function(SHA = gert::git_info(repo = git_repo())$commit,

if (is.null(news)) {
ui_oops("
Can't find {ui_path('NEWS.md')} in the released package source.
Can't find {.val NEWS.md} in the released package source.
usethis consults this file for release notes.
Call {ui_code('usethis::use_news_md()')} to set this up for the future.")
if (on_cran) "-- no release notes --" else "Initial release"
Expand Down

0 comments on commit 35480a0

Please sign in to comment.