File: prepare_release.sh

package info (click to toggle)
pygithub 2.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,476 kB
  • sloc: python: 38,409; sh: 7; makefile: 6
file content (13 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -eo pipefail

# update file headers
python scripts/fix_headers.py

# creates a changelog based on the commits from the previous version until now
previousVersion=$(git tag -l --merged main | tail -n1)
changelog=$(tail -n +6 doc/changes.rst)
gitlog=$(git log $previousVersion.. --oneline --pretty=format:'* %s (%h)')
today=$(date "+(%B %d, %Y)")
echo -e "Change log\n==========\n\nStable versions\n~~~~~~~~~~~~~~~\n\nVersion ?.?.? $today\n-----------------------------------\n\n$gitlog\n$changelog" > doc/changes.rst