From 9f34e6c37a5cb8125e847072499c88c55f6fbed0 Mon Sep 17 00:00:00 2001 From: anomiex Date: Wed, 23 Oct 2024 21:00:09 +0000 Subject: [PATCH] changlogger: When amending, do not preserve default link (#39868) When doing `changelogger write --amend`, we normally preserve the prologue, epilogue, and link unless these are overridden on the command line. An edge case is when you're amending version 1.2.3-beta to turn it into 1.2.3 release, and the link is the default link like `https://example.com/diff/1.2.2...1.2.3-beta`. In this situation we don't want to keep that link, we want to replace it with the new default `https://example.com/diff/1.2.2...1.2.3`. Also, when building changelogger, we have to install before trying to run it. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11487859862 Upstream-Ref: Automattic/jetpack@07e18c23a06b9bc8afe4a5323c5de4b72ce2354b --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c4bfece..083e120 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require-dev": { "yoast/phpunit-polyfills": "^1.1.1", - "automattic/jetpack-changelogger": "^4.2.6", + "automattic/jetpack-changelogger": "^4.2.7-alpha", "automattic/wordbless": "@dev" }, "suggest": {