From a11cccd89ca885527b4776d73978ce135b1b56eb Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Tue, 13 Aug 2024 10:01:29 -0700 Subject: [PATCH] Stop appending extraneous v to tags --- CHANGELOG.md | 6 ++++++ bumpchanges/changelog.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ce4e08..d852017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Stop appending extra `v` to latest tag in change URLs + ## [0.0.1] - 2024-08-09 ### Changed diff --git a/bumpchanges/changelog.py b/bumpchanges/changelog.py index 32bd596..82c676e 100644 --- a/bumpchanges/changelog.py +++ b/bumpchanges/changelog.py @@ -350,7 +350,7 @@ def render(self) -> str: if version.version == "Unreleased": this_tag = None else: - this_tag = f"v{version.version}" + this_tag = f"{version.version}" if prior_tag: href = f"{self.repo_url}/compare/{prior_tag}...{this_tag if this_tag else 'HEAD'}"