From afb719f3beb670cf9c772369b5baeed585cdb7b2 Mon Sep 17 00:00:00 2001 From: igerber Date: Sun, 1 Feb 2026 16:04:04 -0500 Subject: [PATCH] Replace hardcoded GitHub URL in bump-version skill with dynamic resolution The CHANGELOG comparison link in bump-version.md hardcoded igerber/diff-diff, which would produce incorrect links for forks. Now instructs Claude to derive owner/repo from git remote, matching the pattern used by other skills. Co-Authored-By: Claude Opus 4.5 --- .claude/commands/bump-version.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.claude/commands/bump-version.md b/.claude/commands/bump-version.md index db64bb5..63d9885 100644 --- a/.claude/commands/bump-version.md +++ b/.claude/commands/bump-version.md @@ -80,10 +80,13 @@ Files that need updating: Note: Rust version may differ from Python version; always sync to the new version 6. **Update CHANGELOG comparison links**: + - Run `git remote get-url origin` to determine the repository's GitHub URL + (strip `.git` suffix, convert SSH format to HTTPS if needed) - At the bottom of `CHANGELOG.md`, after `[OLD_VERSION]:`, add the new comparison link: ``` - [NEW_VERSION]: https://github.com/igerber/diff-diff/compare/vOLD_VERSION...vNEW_VERSION + [NEW_VERSION]: https://github.com/OWNER/REPO/compare/vOLD_VERSION...vNEW_VERSION ``` + using the owner/repo derived from the remote URL. 7. **Report summary**: Display a summary of all changes made: