ci: update changelog generation to script (#1589)

This commit is contained in:
Travis Groth 2020-11-12 20:00:07 -05:00 committed by GitHub
parent f604a3e87a
commit 095eb63a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 47 deletions

27
scripts/changelog.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
SINCE=$1
RELEASE=$2
BRANCH="${3:-$(git branch --show-current)}"
OUTFILE=$4
docker run --rm=true -it -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator \
--user pomerium --project pomerium \
-o "${OUTFILE}" \
--no-issues \
--max-issues 500 \
--usernames-as-github-logins \
--release-branch "${BRANCH}" \
--future-release "${RELEASE}" \
--since-tag "${SINCE}" \
--token "${GITHUB_TOKEN}" \
--breaking-label "## Breaking" \
--enhancement-label "## New" \
--bugs-label "## Fixed" \
--pr-label "## Changed" \
--deprecated-label "## Deprecated" \
--removed-label "## Removed" \
--security-label "## Security" \
--cache-file /usr/local/src/your-app/.cache \
--enhancement-labels "improvement,Improvement, enhancement,Enhancement, feature" \
--add-sections '{"documentation":{"prefix":"## Documentation","labels":["docs"]}, "dependency":{"prefix":"## Dependency","labels":["dependency"]}, "deployment":{"prefix":"## Deployment","labels":["deployment"]}}'