File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ Checksums are at [ecctl_VERSION_REPLACE_checksums.txt](https://download.elastic.
16
16
17
17
## Release notes
18
18
19
- < https://www.elastic.co/guide/en/ecctl/vVERSION_REPLACE /ecctl-release-notes-vVERSION_REPLACE.html >
19
+ < https://www.elastic.co/guide/en/ecctl/VERSION_CROPPED_REPLACE /ecctl-release-notes-vVERSION_REPLACE.html >
Original file line number Diff line number Diff line change @@ -6,19 +6,21 @@ if [[ $(git status) == *"Your branch is behind"* ]]; then
6
6
fi
7
7
8
8
git fetch
9
- PREV_TAG=$( git tag -l | tail -1)
9
+ PREV_TAG=$( git tag -l ' v[0-9-]*.[0-9-]*.[0-9-] ' | tail -1)
10
10
CHANGELOGFILE=notes/${VERSION} .md
11
11
ADOC_CHANGELOG=docs/release_notes/${VERSION} .adoc
12
12
ADOC_CHANGELOG_HISTORY=docs/ecctl-release-notes.asciidoc
13
13
14
14
if [[ -z ${PREV_TAG} ]]; then echo " -> Exiting changelog generation since there's no previous tag" ; exit 0; fi
15
15
16
+ MAJORMINOR=" $( echo ${VERSION} | tr -d ' v' | cut -d ' .' -f1) .$( echo $VERSION | tr -d ' v' | cut -d ' .' -f2) "
17
+
16
18
echo " => Attempting to generate the changelog for release ${VERSION} ..."
17
19
read -p " => Previous release was ${PREV_TAG} , is that correct? " -n 1 -r
18
20
19
21
if [[ ${REPLY} =~ ^[Yy]$ ]]; then
20
22
echo " "
21
- sed " s/VERSION_REPLACE/$( echo ${VERSION} | sed ' s/^v//' ) /g" scripts/changelog.tpl.md > ${CHANGELOGFILE}
23
+ sed " s/VERSION_REPLACE/$( echo ${VERSION} | sed ' s/^v//' ) /g" scripts/changelog.tpl.md | sed " s/VERSION_CROPPED_REPLACE/ ${MAJORMINOR} / " > ${CHANGELOGFILE}
22
24
sed " s/VERSION_REPLACE/$( echo ${VERSION} | sed ' s/^v//' ) /g" scripts/changelog.tpl.adoc > ${ADOC_CHANGELOG}
23
25
24
26
git -c log.showSignature=false log --pretty=" https://github.com/elastic/ecctl/commit/%h[%h] %s" --no-decorate --no-color tags/${PREV_TAG} ..master | \
You can’t perform that action at this time.
0 commit comments