File: github_release_notes.sh

package info (click to toggle)
python-limits 4.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: python: 7,833; makefile: 162; sh: 59
file content (8 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/bash

TAG=$(echo $GITHUB_REF | cut -d / -f 3)
git format-patch -1 $TAG --stdout | grep -P '^\+' | \
    sed '1,4d' | \
    grep -v "Release Date" | \
    sed -E -e 's/^\+(.*)/\1/' -e 's/^\*(.*)/## \1/' -e 's/^  //' -e 's/\:(.*)\:(.*)/\2/' | \
    sed -E -e 's/`(.*) <(https.*)>`_/[\1](\2)/'