From 5dd4d0c37002292ed20d51e8a361c1cbe3ce25a3 Mon Sep 17 00:00:00 2001 From: Quinn Casey Date: Fri, 29 Jul 2022 09:16:31 -0700 Subject: [PATCH 1/4] Add documentation as included label --- .github/release-drafter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 16538820d..29f8c55bd 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -25,6 +25,7 @@ include-labels: - 'deployment' - 'translation' - 'dependencies' + - 'documentation' replacers: # Changes "Feature: Update checker" to "Update checker" - search: '/Feature:|Feat:|\[feature\]/gi' replace: '' From 8d3361766dd96214e053c25780755068f77d056e Mon Sep 17 00:00:00 2001 From: Quinn Casey Date: Wed, 10 Aug 2022 17:45:01 -0700 Subject: [PATCH 2/4] Draft more comprehensive changelog --- .github/release-drafter.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 29f8c55bd..f16f71d55 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -15,9 +15,15 @@ categories: - 'chore' - 'deployment' - 'translation' + - 'ci-cd' - title: 'Dependencies' collapse-after: 3 label: 'dependencies' + - title: 'All App Changes' + labels: + - 'frontend' + - 'backend' + collapse-after: 0 include-labels: - 'enhancement' - 'bug' @@ -26,8 +32,11 @@ include-labels: - 'translation' - 'dependencies' - 'documentation' + - 'frontend' + - 'backend' + - 'ci-cd' replacers: # Changes "Feature: Update checker" to "Update checker" - - search: '/Feature:|Feat:|\[feature\]/gi' + - search: '/Feature:?|Feat:?|\[feature\]/gi' replace: '' category-template: '### $TITLE' change-template: '- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))' From 18a2a41682274d870c9a935feb4b8a20381e29f2 Mon Sep 17 00:00:00 2001 From: Quinn Casey Date: Thu, 11 Aug 2022 09:49:04 -0700 Subject: [PATCH 3/4] Use fork of release-drafter to exclude prereleases --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6db6e6d1..d7f57cde5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -332,7 +332,7 @@ jobs: - name: Create Release and Changelog id: create-release - uses: release-drafter/release-drafter@v5 + uses: paperless-ngx/release-drafter@master with: name: Paperless-ngx ${{ steps.get_version.outputs.version }} tag: ${{ steps.get_version.outputs.version }} From a4c4b81297445365602f2c460b617dffa3a63f2b Mon Sep 17 00:00:00 2001 From: Quinn Casey Date: Wed, 17 Aug 2022 08:30:40 -0700 Subject: [PATCH 4/4] Manually link authors only in docs/changelog.md --- .github/release-drafter.yml | 5 +---- .github/workflows/ci.yml | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index f16f71d55..a23fc7165 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -35,11 +35,8 @@ include-labels: - 'frontend' - 'backend' - 'ci-cd' -replacers: # Changes "Feature: Update checker" to "Update checker" - - search: '/Feature:?|Feat:?|\[feature\]/gi' - replace: '' category-template: '### $TITLE' -change-template: '- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))' +change-template: '- $TITLE @$AUTHOR ([#$NUMBER]($URL))' change-title-escapes: '\<*_&#@' template: | ## paperless-ngx $RESOLVED_VERSION diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7f57cde5..cf86d0c82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -372,6 +372,8 @@ jobs: git branch ${{ needs.publish-release.outputs.version }}-changelog git checkout ${{ needs.publish-release.outputs.version }}-changelog echo -e "# Changelog\n\n${{ needs.publish-release.outputs.changelog }}\n" > changelog-new.md + echo "Manually linking usernames" + sed -i -r 's|@(.+?) \(\[#|[@\1](https://github.com/\1) ([#|ig' changelog-new.md CURRENT_CHANGELOG=`tail --lines +2 changelog.md` echo -e "$CURRENT_CHANGELOG" >> changelog-new.md mv changelog-new.md changelog.md