ci: 👷 adds configuration for gitea-release-drafter
This commit adds the configuration for gitea-release-drafter and an corresponding workflow to autoamtically draft release notes on successfull merges to the main branch.
This commit is contained in:
		
							
								
								
									
										30
									
								
								.gitea/release-drafter.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.gitea/release-drafter.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
name-template: 'v$RESOLVED_VERSION 🌈'
 | 
			
		||||
tag-template: 'v$RESOLVED_VERSION'
 | 
			
		||||
 | 
			
		||||
version-resolver:
 | 
			
		||||
  major:
 | 
			
		||||
    labels:
 | 
			
		||||
      - 'ReleaseTarget/Major'
 | 
			
		||||
      - 'Kind/Breaking'
 | 
			
		||||
  minor:
 | 
			
		||||
    labels:
 | 
			
		||||
      - 'ReleaseTarget/Minor'
 | 
			
		||||
  patch:
 | 
			
		||||
    labels:
 | 
			
		||||
      - 'ReleaseTarget/Patch'
 | 
			
		||||
  default: patch
 | 
			
		||||
 | 
			
		||||
categories:
 | 
			
		||||
  - title: '🚀 Features'
 | 
			
		||||
    labels:
 | 
			
		||||
      - 'Kind/Breaking'
 | 
			
		||||
      - 'Kind/Feature'
 | 
			
		||||
      - 'Kind/Enhancement'
 | 
			
		||||
  - title: '🐛 Bug Fixes'
 | 
			
		||||
    labels:
 | 
			
		||||
      - 'Kind/Bug'
 | 
			
		||||
      - 'Kind/Security'
 | 
			
		||||
  - title: '🧰 Maintenance'
 | 
			
		||||
    labels: 
 | 
			
		||||
      - 'Kind/Documentation'
 | 
			
		||||
      - 'Kind/CI'
 | 
			
		||||
							
								
								
									
										17
									
								
								.gitea/workflows/draft-release.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.gitea/workflows/draft-release.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Setup Go
 | 
			
		||||
        uses: actions/setup-go@v3
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: '1.20'
 | 
			
		||||
 | 
			
		||||
      - name: Use Go Action  
 | 
			
		||||
        id: use-go-action
 | 
			
		||||
        uses: https://git.beisel.it/florian/gitea-release-drafter@main
 | 
			
		||||
		Reference in New Issue
	
	Block a user