use github generated release notes for LS changes #351
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merged PRs are listed individually.
For commits, it includes a link to the commit history since the last tag
Nice thing is, it determines the last tag automatically based on branch defined
However, if the new release includes an upstream version update only, no package updates and the upstream app's version is not listed in the package_versions.txt, this method would list the changelog between the prior tag (as opposed to latest) and the new prpoposed tag. It wouldn't be inaccurate, but it would be misleading.It now checks to see if the current commit is associated with a tag and if so, it printsNo Changes
under the LS changes section.Here are some examples:
Release with PRs: https://github.com/aptalca/test/releases/tag/1.0.1
Release with No PRs, just commits: https://github.com/aptalca/test/releases/tag/test-1.0.1
Release with just commits and no previous tag: https://github.com/aptalca/test/releases/tag/test-1.0.0
EDIT: Switched to jq for generating our release body because sanitization became a nightmare. The above releases were created by copy pasting the api call output into a manually created released.
The following release was created entirely via cli, mimicking the Jenkinsfile commands as closely as possible: https://github.com/aptalca/test/releases/tag/140.0.7339.80-1-ls36