mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Remove project actions in favor of GH workflows
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/project-actions.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,10 +1,6 @@ | |||||||
| name: Project Automations | name: Project Automations | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   issues: |  | ||||||
|     types: |  | ||||||
|       - opened |  | ||||||
|       - reopened |  | ||||||
|   pull_request_target: #_target allows access to secrets |   pull_request_target: #_target allows access to secrets | ||||||
|     types: |     types: | ||||||
|       - opened |       - opened | ||||||
| @@ -16,25 +12,7 @@ on: | |||||||
| permissions: | permissions: | ||||||
|   contents: read |   contents: read | ||||||
|  |  | ||||||
| env: |  | ||||||
|   todo: Todo |  | ||||||
|   done: Done |  | ||||||
|   in_progress: In Progress |  | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   issue_opened_or_reopened: |  | ||||||
|     name: issue_opened_or_reopened |  | ||||||
|     runs-on: ubuntu-22.04 |  | ||||||
|     if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') |  | ||||||
|     steps: |  | ||||||
|       - name: Add issue to project and set status to ${{ env.todo }} |  | ||||||
|         uses: leonsteinhaeuser/project-beta-automations@v2.2.1 |  | ||||||
|         with: |  | ||||||
|           gh_token: ${{ secrets.GH_TOKEN }} |  | ||||||
|           organization: paperless-ngx |  | ||||||
|           project_id: 2 |  | ||||||
|           resource_node_id: ${{ github.event.issue.node_id }} |  | ||||||
|           status_value: ${{ env.todo }} # Target status |  | ||||||
|   pr_opened_or_reopened: |   pr_opened_or_reopened: | ||||||
|     name: pr_opened_or_reopened |     name: pr_opened_or_reopened | ||||||
|     runs-on: ubuntu-22.04 |     runs-on: ubuntu-22.04 | ||||||
| @@ -43,14 +21,6 @@ jobs: | |||||||
|       pull-requests: write |       pull-requests: write | ||||||
|     if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request.user.login != 'dependabot' |     if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request.user.login != 'dependabot' | ||||||
|     steps: |     steps: | ||||||
|       - name: Add PR to project and set status to "Needs Review" |  | ||||||
|         uses: leonsteinhaeuser/project-beta-automations@v2.2.1 |  | ||||||
|         with: |  | ||||||
|           gh_token: ${{ secrets.GH_TOKEN }} |  | ||||||
|           organization: paperless-ngx |  | ||||||
|           project_id: 2 |  | ||||||
|           resource_node_id: ${{ github.event.pull_request.node_id }} |  | ||||||
|           status_value: "Needs Review" # Target status |  | ||||||
|       - name: Label PR with release-drafter |       - name: Label PR with release-drafter | ||||||
|         uses: release-drafter/release-drafter@v5 |         uses: release-drafter/release-drafter@v5 | ||||||
|         env: |         env: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon