From c795b54978b34b8f6b83d96fcd87cd4469ce1d2d Mon Sep 17 00:00:00 2001 From: nscuro Date: Mon, 23 Oct 2023 13:49:09 +0200 Subject: [PATCH] Let GitHub generate release notes Analogue to how we're doing it for the hyades repository already. Signed-off-by: nscuro --- .github/default-release-notes.md | 2 -- .github/release.yml | 14 ++++++++++++++ .github/workflows/ci-publish.yaml | 9 --------- .github/workflows/ci-release.yaml | 3 +-- 4 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 .github/default-release-notes.md create mode 100644 .github/release.yml diff --git a/.github/default-release-notes.md b/.github/default-release-notes.md deleted file mode 100644 index ad27685f6..000000000 --- a/.github/default-release-notes.md +++ /dev/null @@ -1,2 +0,0 @@ -For official releases, refer to [Dependency Track Docs >> Changelogs](https://docs.dependencytrack.org/changelog/) for information about improvements and upgrade notes. -If additional details are required, consult the closed issues for this release milestone. diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..a1915a434 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,14 @@ +changelog: + categories: + - title: Enhancements 🚀 + labels: + - enhancement + - title: Bug Fixes 🐛 + labels: + - bug + - title: Dependency Updates 🤖 + labels: + - dependencies + - title: Other Changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/ci-publish.yaml b/.github/workflows/ci-publish.yaml index 26477066b..91dacc507 100644 --- a/.github/workflows/ci-publish.yaml +++ b/.github/workflows/ci-publish.yaml @@ -70,15 +70,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.BOT_RELEASE_TOKEN }} run: |- - cat << EOF >> .github/default-release-notes.md - \`\`\`text - $(cat target/checksums.txt) - \`\`\` - EOF - - gh release edit ${{ needs.read-version.outputs.version }} \ - --notes-file ".github/default-release-notes.md" - gh release upload ${{ needs.read-version.outputs.version }} \ --clobber \ target/dependency-track-apiserver.jar \ diff --git a/.github/workflows/ci-release.yaml b/.github/workflows/ci-release.yaml index 709269458..34aba576b 100644 --- a/.github/workflows/ci-release.yaml +++ b/.github/workflows/ci-release.yaml @@ -97,8 +97,7 @@ jobs: run: |- gh release create "${{ needs.prepare-release.outputs.version }}" \ --target "${{ needs.prepare-release.outputs.release-branch }}" \ - --title "${{ needs.prepare-release.outputs.version }}" \ - --notes-file ".github/default-release-notes.md" + --generate-notes post-release: runs-on: ubuntu-latest