mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Merge pull request #1396 from paperless-ngx/chore/add-autolabeler
Chore: Add `autolabeler` to label PRs based on `ref` and title
This commit is contained in:
		
						commit
						4faff70b5d
					
				
							
								
								
									
										11
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
								
							@ -1,3 +1,14 @@
 | 
				
			|||||||
 | 
					autolabeler:
 | 
				
			||||||
 | 
					  - label: "bug"
 | 
				
			||||||
 | 
					    branch:
 | 
				
			||||||
 | 
					      - '/^fix/'
 | 
				
			||||||
 | 
					    title:
 | 
				
			||||||
 | 
					      - "/^fix/i"
 | 
				
			||||||
 | 
					  - label: "enhancement"
 | 
				
			||||||
 | 
					    branch:
 | 
				
			||||||
 | 
					      - '/^feature/'
 | 
				
			||||||
 | 
					    title:
 | 
				
			||||||
 | 
					      - "/^feature/i"
 | 
				
			||||||
categories:
 | 
					categories:
 | 
				
			||||||
  - title: 'Breaking Changes'
 | 
					  - title: 'Breaking Changes'
 | 
				
			||||||
    labels:
 | 
					    labels:
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							@ -13,6 +13,9 @@ on:
 | 
				
			|||||||
      - main
 | 
					      - main
 | 
				
			||||||
      - dev
 | 
					      - dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					permissions:
 | 
				
			||||||
 | 
					  contents: read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  todo: Todo
 | 
					  todo: Todo
 | 
				
			||||||
  done: Done
 | 
					  done: Done
 | 
				
			||||||
@ -35,6 +38,9 @@ jobs:
 | 
				
			|||||||
  pr_opened_or_reopened:
 | 
					  pr_opened_or_reopened:
 | 
				
			||||||
    name: pr_opened_or_reopened
 | 
					    name: pr_opened_or_reopened
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      # write permission is required for autolabeler
 | 
				
			||||||
 | 
					      pull-requests: write
 | 
				
			||||||
    if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened')
 | 
					    if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened')
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Set PR status to ${{ env.in_progress }}
 | 
					      - name: Set PR status to ${{ env.in_progress }}
 | 
				
			||||||
@ -45,3 +51,7 @@ jobs:
 | 
				
			|||||||
          project_id: 2
 | 
					          project_id: 2
 | 
				
			||||||
          resource_node_id: ${{ github.event.pull_request.node_id }}
 | 
					          resource_node_id: ${{ github.event.pull_request.node_id }}
 | 
				
			||||||
          status_value: ${{ env.in_progress }} # Target status
 | 
					          status_value: ${{ env.in_progress }} # Target status
 | 
				
			||||||
 | 
					      - name: Label PR with release-drafter
 | 
				
			||||||
 | 
					        uses: release-drafter/release-drafter@v5
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user