mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	feat: comment URL on previewed PRs (#16085)
This commit is contained in:
		
							parent
							
								
									bf16b61d43
								
							
						
					
					
						commit
						f5edc87e4d
					
				
							
								
								
									
										17
									
								
								.github/workflows/preview-comment.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/preview-comment.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					name: Preview comment
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    types: [labeled]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  comment-status:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    if: ${{ github.event.label.name == 'preview' }}
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      pull-requests: write
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: mshick/add-pr-comment@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          message-id: "preview-status"
 | 
				
			||||||
 | 
					          message: "Deploying preview environment to https://pr-${{ github.event.pull_request.number }}.preview.internal.immich.cloud/"
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user