From bf37252042b5ae399af5f1ed6d84f8f1e78de471 Mon Sep 17 00:00:00 2001 From: wlandau Date: Tue, 12 Mar 2024 20:36:03 -0400 Subject: [PATCH] Allow terminating newline to be absent in URL contributions --- DESCRIPTION | 2 +- NEWS.md | 4 ++++ R/review_pull_request.R | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 02ec1c8..da057c4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: r.releases.internals Title: Internal Infrastructure for An R Universe of Package Releases Description: Internal infrastructure for an R universe of package releases. -Version: 0.0.13 +Version: 0.0.14 License: MIT + file LICENSE URL: https://github.com/r-releases/r.releases.internals BugReports: https://github.com/r-releases/r.releases.internals/issues diff --git a/NEWS.md b/NEWS.md index 7eeb5b7..e1617f9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# r.releases.internals 0.0.14 + +* Allow terminating newline to be absent in URL contributions. + # r.releases.internals 0.0.13 * Reformat bot messages. diff --git a/R/review_pull_request.R b/R/review_pull_request.R index d2621e8..e7b79c1 100644 --- a/R/review_pull_request.R +++ b/R/review_pull_request.R @@ -79,6 +79,7 @@ review_pull_request <- function( return(invisible()) } url <- gsub(pattern = "^.*\\+", replacement = "", x = file$patch) + url <- gsub(pattern = "\\s.*$", replacement = "", x = url) result <- assert_package(name = name, url = url) if (!is.null(result)) { pull_request_defer(