From a3ff596e22b489d19e3ac3a18e096415707edb37 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Sat, 30 May 2026 09:05:55 +0100 Subject: [PATCH] scripts/changelog: Generate links to commits on seed.radicle.dev Generate the links to the commits, on seed.radicle.dev, so that reviewers of the changelog can easily navigate to the commits. --- scripts/changelog | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/changelog b/scripts/changelog index 5441a6e6..4451a511 100755 --- a/scripts/changelog +++ b/scripts/changelog @@ -1,6 +1,12 @@ #!/bin/sh set -e +render_commit_footnotes() { + # shellcheck disable=SC2016 + git log --pretty=format:'[`%h`]: https://radicle.network/nodes/seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/commits/%H' "$1" + echo +} + # Version from which to generate the changelog. from="" @@ -67,9 +73,13 @@ echo "This release contains $ncommits commit(s) by $ncontribs contributor(s)." echo # shellcheck disable=SC2016 -git log --pretty=format:'* `%h` **%s** *<%ae>*' "$range" - +git log --pretty=format:'* [`%h`] **%s** *<%ae>*' "$range" echo +echo + +render_commit_footnotes "$range" +echo + echo "## Checksums" echo