From 6043fdf94f9f44659fdf3a94409b9a579abc5418 Mon Sep 17 00:00:00 2001 From: Eric Hanson <5846501+ericphanson@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:38:25 +0100 Subject: [PATCH] Fix sequential version message (#546) * fix sequential version message * bugfix --- Project.toml | 2 +- src/AutoMerge/guidelines.jl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index b146336f..97c72ddb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RegistryCI" uuid = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32" authors = ["Dilum Aluthge ", "Fredrik Ekre ", "contributors"] -version = "10.0.0" +version = "10.0.1" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/src/AutoMerge/guidelines.jl b/src/AutoMerge/guidelines.jl index 7f0fc30b..636b4883 100644 --- a/src/AutoMerge/guidelines.jl +++ b/src/AutoMerge/guidelines.jl @@ -458,7 +458,7 @@ function meets_repo_url_requirement(pkg::String; registry_head::String) end function _invalid_sequential_version(reason::AbstractString) - return false, "Does not meet sequential version number guideline: $(reason). If this was intentional, please leave a comment saying so. Otherwise please correct the version number in your package and re-trigger registration.", :invalid + return false, "Does not meet sequential version number guideline: $(reason). $PACKAGE_AUTHOR_APPROVAL_INSTRUCTIONS", :invalid end function _valid_change(old_version::VersionNumber, new_version::VersionNumber) @@ -489,7 +489,6 @@ const guideline_sequential_version_number = Guideline(; "valid new versions are `1.0.1`, `1.1.1`, `1.2.0` and `2.0.0`. ", "Invalid new versions include `1.0.2` (skips `1.0.1`), ", "`1.3.0` (skips `1.2.0`), `3.0.0` (skips `2.0.0`) etc.", - PACKAGE_AUTHOR_APPROVAL_INSTRUCTIONS, ), check=data -> meets_sequential_version_number( data.pkg,