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
Chris Akritidis committed
Sep 20, 2019 at 15:09 UTC
c6819cd535b3699676099cfe46dfa8c10e289fa6
3 files changed
+8
-6
.travis/generate_changelog_and_tag_release.sh
+3
-3
@@ -55,9 +55,9 @@ echo "---- UPDATE VERSION FILE ----"
55
echo "$GIT_TAG" >packaging/version
56
git add packaging/version
57
58
-#echo "---- GENERATE CHANGELOG -----"
59
-#./.travis/generate_changelog_for_release.sh
60
-#git add CHANGELOG.md
58
+echo "---- GENERATE CHANGELOG -----"
59
+./.travis/generate_changelog_for_release.sh
60
+git add CHANGELOG.md
61
62
echo "---- COMMIT AND PUSH CHANGES ----"
63
git commit -m "[ci skip] release $GIT_TAG" --author "${GIT_USER} <${GIT_MAIL}>"
.travis/generate_changelog_for_nightlies.sh
+2
-1
@@ -51,7 +51,8 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest
51
--unreleased-label "**Next release**" \
52
--no-issues \
53
--exclude-labels "stale,duplicate,question,invalid,wontfix,discussion,no changelog" \
54
- --no-compare-link ${OPTS}
54
+ --max-issues 500 \
55
+ --bug-labels IGNOREBUGS
56
57
echo "Changelog created! Adding packaging/version(${NEW_VERSION}) and CHANGELOG.md to the repository"
58
echo "${NEW_VERSION}" > packaging/version
.travis/generate_changelog_for_release.sh
+3
-2
@@ -25,7 +25,7 @@ fi
25
echo "--- Creating changelog ---"
26
git checkout master
27
git pull
28
-#docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator:1.14.3 \
28
+
29
docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest \
30
--user "${ORGANIZATION}" \
31
--project "${PROJECT}" \
@@ -34,4 +34,5 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest
34
--no-issues \
35
--unreleased-label "**Next release**" \
36
--exclude-labels "stale,duplicate,question,invalid,wontfix,discussion,no changelog" \
37
- --no-compare-link ${OPTS}
37
+ --max-issues 500 \
38
+ --bug-labels IGNOREBUGS