Add link to git commit for unstable changelog too (#2078)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
844dd6f8ae
commit
4ff9a851e6
3 changed files with 22 additions and 3 deletions
|
@ -44,8 +44,18 @@ outputs:
|
|||
- html
|
||||
- checklist
|
||||
date: $(date -Idate)
|
||||
---
|
||||
EOF
|
||||
|
||||
# Add the commit hash for the unstable versions. It is used to generate a
|
||||
# link to the commit on the repository.
|
||||
if [ "$VERSION" == "vUNSTABLE" ]; then
|
||||
echo "params:"
|
||||
echo " commit: $(git rev-parse --short HEAD)"
|
||||
fi
|
||||
|
||||
# Close the frontmatter.
|
||||
echo "---"
|
||||
|
||||
# Remove trailing whitespace (such as our intentionally blank RST headings)
|
||||
sed -e "s/[ ]*$//" rendered.md
|
||||
} > ../content/changelog/$FILENAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue