From ceab2568950cfb56454c11ecf20e3f8cbecdafb2 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Thu, 29 Aug 2019 12:02:44 -0700 Subject: [PATCH] added regex filter to changelog.sh removes the category tags from public output --- scripts/changelog.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/changelog.sh b/scripts/changelog.sh index 5ec1688..1b2c06c 100644 --- a/scripts/changelog.sh +++ b/scripts/changelog.sh @@ -26,13 +26,13 @@ git_user="${3:-pyr0ball}" git_project="${4:-pyr0piezo}" # Gather full changelog -changelog=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse ) +changelog=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse | sed 's/#bugfix//g' | sed 's/#featureadd//g') # Gather bugfixes -bugfixes=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse | grep "#bugfix" ) +bugfixes=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse | grep "#bugfix" | sed 's/#bugfix//g' ) # Gather added features -featureadd=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse | grep "#featureadd") +featureadd=$(git log ${first_tag}...${last_tag} --pretty=format:"- %s [view commit](http://github.com/${git_user}/${git_project}/commit/%H) \n" --reverse | grep "#featureadd" | sed 's/#featureadd//g' ) # Build a new nav bar entry for the changelog navadd=" - Changelog $first_tag to $last_tag: /'changelogs/changelog_${date_pretty}_${first_tag}_${last_tag}.md/'"