mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge pull request #1301 from paperless-ngx/fix-release-drafter
[CI] Fix release drafter issues
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							| @@ -26,9 +26,15 @@ categories: | |||||||
|       - 'chore' |       - 'chore' | ||||||
|       - 'deployment' |       - 'deployment' | ||||||
|       - 'translation' |       - 'translation' | ||||||
|  |       - 'ci-cd' | ||||||
|   - title: 'Dependencies' |   - title: 'Dependencies' | ||||||
|     collapse-after: 3 |     collapse-after: 3 | ||||||
|     label: 'dependencies' |     label: 'dependencies' | ||||||
|  |   - title: 'All App Changes' | ||||||
|  |     labels: | ||||||
|  |       - 'frontend' | ||||||
|  |       - 'backend' | ||||||
|  |     collapse-after: 0 | ||||||
| include-labels: | include-labels: | ||||||
|   - 'enhancement' |   - 'enhancement' | ||||||
|   - 'bug' |   - 'bug' | ||||||
| @@ -36,11 +42,12 @@ include-labels: | |||||||
|   - 'deployment' |   - 'deployment' | ||||||
|   - 'translation' |   - 'translation' | ||||||
|   - 'dependencies' |   - 'dependencies' | ||||||
| replacers: # Changes "Feature: Update checker" to "Update checker" |   - 'documentation' | ||||||
|   - search: '/Feature:|Feat:|\[feature\]/gi' |   - 'frontend' | ||||||
|     replace: '' |   - 'backend' | ||||||
|  |   - 'ci-cd' | ||||||
| category-template: '### $TITLE' | category-template: '### $TITLE' | ||||||
| change-template: '- $TITLE [@$AUTHOR](https://github.com/$AUTHOR) ([#$NUMBER]($URL))' | change-template: '- $TITLE @$AUTHOR ([#$NUMBER]($URL))' | ||||||
| change-title-escapes: '\<*_&#@' | change-title-escapes: '\<*_&#@' | ||||||
| template: | | template: | | ||||||
|   ## paperless-ngx $RESOLVED_VERSION |   ## paperless-ngx $RESOLVED_VERSION | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -332,7 +332,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Create Release and Changelog |         name: Create Release and Changelog | ||||||
|         id: create-release |         id: create-release | ||||||
|         uses: release-drafter/release-drafter@v5 |         uses: paperless-ngx/release-drafter@master | ||||||
|         with: |         with: | ||||||
|           name: Paperless-ngx ${{ steps.get_version.outputs.version }} |           name: Paperless-ngx ${{ steps.get_version.outputs.version }} | ||||||
|           tag: ${{ steps.get_version.outputs.version }} |           tag: ${{ steps.get_version.outputs.version }} | ||||||
| @@ -372,6 +372,8 @@ jobs: | |||||||
|           git branch ${{ needs.publish-release.outputs.version }}-changelog |           git branch ${{ needs.publish-release.outputs.version }}-changelog | ||||||
|           git checkout ${{ 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 -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` |           CURRENT_CHANGELOG=`tail --lines +2 changelog.md` | ||||||
|           echo -e "$CURRENT_CHANGELOG" >> changelog-new.md |           echo -e "$CURRENT_CHANGELOG" >> changelog-new.md | ||||||
|           mv changelog-new.md changelog.md |           mv changelog-new.md changelog.md | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon