Skip to content
Snippets Groups Projects
public
Authored by avatar Matt @mjc

Generate release notes for existing tags

Edited
Embed
Share
  • Clone with SSH
  • Clone with HTTPS
  • generate_release_notes.sh 397 B
    #!/bin/bash
    
    previous_tag=""
    for tag in $(git tag | sort -nr)
    do
        if [ "$previous_tag" == "" ]
        then
            previous_tag=$tag
            continue
        fi
    
        echo -e "\n\n## $tag\n" >> ./RELEASE_NOTES.md
    
        git log ${tag}..${previous_tag} | grep 'Date:  ' -A2 | grep -Ev '^Date:   ' | grep -Ev '^--' | grep -E '[a-z]' | sed -E 's/^\s+/ * /g' >> ./RELEASE_NOTES.md
    
        previous_tag=$tag
    done
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment