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.
This commit is contained in:
parent
a65ac048cb
commit
a3ff596e22
|
|
@ -1,6 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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.
|
# Version from which to generate the changelog.
|
||||||
from=""
|
from=""
|
||||||
|
|
||||||
|
|
@ -67,9 +73,13 @@ echo "This release contains $ncommits commit(s) by $ncontribs contributor(s)."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
git log --pretty=format:'* `%h` **%s** *<%ae>*' "$range"
|
git log --pretty=format:'* [`%h`] **%s** *<%ae>*' "$range"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
echo
|
||||||
|
|
||||||
|
render_commit_footnotes "$range"
|
||||||
|
echo
|
||||||
|
|
||||||
echo "## Checksums"
|
echo "## Checksums"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue