diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-20 15:09:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 15:09:10 +0200 |
commit | c6819cd535b3699676099cfe46dfa8c10e289fa6 (patch) | |
tree | f4276ff7f262af57554853135a769b77d10c9edd | |
parent | f555472a8ceb189407b103570be9a28031819d4b (diff) |
Improve changelog generation and add it back to the pipeline (#6900)
#### Summary
Preparation for #6899
Make changelog generation faster and ensure it won't crash. Put it back to the pipeline.
##### Component Name
CI/CD
##### Additional Information
- Added correct max-issues specification. Note that the number of issues affects the number of displayed PRs. There's no way to ensure that all the PRs in a tag will be displayed, but with a limit of 500 we know that the most recent releases will be complete.
- Let the CHANGELOG show links to diffs
- Put an invalid Bug tag, to ensure that fixed bugs are not listed (the result with the defaults was incorrect)
- Enable running the changelog generation again
-rwxr-xr-x | .travis/generate_changelog_and_tag_release.sh | 6 | ||||
-rwxr-xr-x | .travis/generate_changelog_for_nightlies.sh | 3 | ||||
-rwxr-xr-x | .travis/generate_changelog_for_release.sh | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/.travis/generate_changelog_and_tag_release.sh b/.travis/generate_changelog_and_tag_release.sh index 4613ab14bc..fb155b2645 100755 --- a/.travis/generate_changelog_and_tag_release.sh +++ b/.travis/generate_changelog_and_tag_release.sh @@ -55,9 +55,9 @@ echo "---- UPDATE VERSION FILE ----" echo "$GIT_TAG" >packaging/version git add packaging/version -#echo "---- GENERATE CHANGELOG -----" -#./.travis/generate_changelog_for_release.sh -#git add CHANGELOG.md +echo "---- GENERATE CHANGELOG -----" +./.travis/generate_changelog_for_release.sh +git add CHANGELOG.md echo "---- COMMIT AND PUSH CHANGES ----" git commit -m "[ci skip] release $GIT_TAG" --author "${GIT_USER} <${GIT_MAIL}>" diff --git a/.travis/generate_changelog_for_nightlies.sh b/.travis/generate_changelog_for_nightlies.sh index b908628807..2e8da17f59 100755 --- a/.travis/generate_changelog_for_nightlies.sh +++ b/.travis/generate_changelog_for_nightlies.sh @@ -51,7 +51,8 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest --unreleased-label "**Next release**" \ --no-issues \ --exclude-labels "stale,duplicate,question,invalid,wontfix,discussion,no changelog" \ - --no-compare-link ${OPTS} + --max-issues 500 \ + --bug-labels IGNOREBUGS echo "Changelog created! Adding packaging/version(${NEW_VERSION}) and CHANGELOG.md to the repository" echo "${NEW_VERSION}" > packaging/version diff --git a/.travis/generate_changelog_for_release.sh b/.travis/generate_changelog_for_release.sh index d7066aa9b0..3f68a6925d 100755 --- a/.travis/generate_changelog_for_release.sh +++ b/.travis/generate_changelog_for_release.sh @@ -25,7 +25,7 @@ fi echo "--- Creating changelog ---" git checkout master git pull -#docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator:1.14.3 \ + docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest \ --user "${ORGANIZATION}" \ --project "${PROJECT}" \ @@ -34,4 +34,5 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest --no-issues \ --unreleased-label "**Next release**" \ --exclude-labels "stale,duplicate,question,invalid,wontfix,discussion,no changelog" \ - --no-compare-link ${OPTS} + --max-issues 500 \ + --bug-labels IGNOREBUGS |