mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	Update PR-Demo-Comment-with-react.yml with stilringbot (#3330)
# Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details.
This commit is contained in:
		
							parent
							
								
									84127867a0
								
							
						
					
					
						commit
						b14c00b627
					
				
							
								
								
									
										23
									
								
								.github/workflows/PR-Demo-Comment-with-react.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/PR-Demo-Comment-with-react.yml
									
									
									
									
										vendored
									
									
								
							| @ -6,8 +6,8 @@ on: | ||||
| 
 | ||||
| permissions: | ||||
|   contents: read | ||||
|   issues: write | ||||
|   pull-requests: read | ||||
|   issues: write      # Required for adding reactions to comments | ||||
|   pull-requests: read # Required for reading PR information | ||||
| 
 | ||||
| jobs: | ||||
|   check-comment: | ||||
| @ -44,6 +44,14 @@ jobs: | ||||
|         with: | ||||
|           egress-policy: audit | ||||
| 
 | ||||
|       # Generate GitHub App token | ||||
|       - name: Generate GitHub App Token | ||||
|         id: generate-token | ||||
|         uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2 | ||||
|         with: | ||||
|           app-id: ${{ secrets.GH_APP_ID }} | ||||
|           private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||||
| 
 | ||||
|       - name: Get PR data | ||||
|         id: get-pr | ||||
|         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||||
| @ -80,6 +88,7 @@ jobs: | ||||
|         id: add-eyes-reaction | ||||
|         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||||
|         with: | ||||
|           github-token: ${{ steps.generate-token.outputs.token }} | ||||
|           script: | | ||||
|             console.log(`Adding eyes reaction to comment ID: ${context.payload.comment.id}`); | ||||
|             try { | ||||
| @ -110,6 +119,13 @@ jobs: | ||||
|         with: | ||||
|           egress-policy: audit | ||||
| 
 | ||||
|       - name: Generate GitHub App Token | ||||
|         id: generate-token | ||||
|         uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2 | ||||
|         with: | ||||
|           app-id: ${{ secrets.GH_APP_ID }} | ||||
|           private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||||
| 
 | ||||
|       - name: Checkout PR | ||||
|         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||||
|         with: | ||||
| @ -209,6 +225,7 @@ jobs: | ||||
|         if: success() | ||||
|         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||||
|         with: | ||||
|           github-token: ${{ steps.generate-token.outputs.token }} | ||||
|           script: | | ||||
|             console.log(`Adding rocket reaction to comment ID: ${{ needs.check-comment.outputs.comment_id }}`); | ||||
|             try { | ||||
| @ -228,6 +245,7 @@ jobs: | ||||
|         if: failure() | ||||
|         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||||
|         with: | ||||
|           github-token: ${{ steps.generate-token.outputs.token }} | ||||
|           script: | | ||||
|             console.log(`Adding -1 reaction to comment ID: ${{ needs.check-comment.outputs.comment_id }}`); | ||||
|             try { | ||||
| @ -247,6 +265,7 @@ jobs: | ||||
|         if: success() | ||||
|         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||||
|         with: | ||||
|           github-token: ${{ steps.generate-token.outputs.token }} | ||||
|           script: | | ||||
|             const { GITHUB_REPOSITORY } = process.env; | ||||
|             const [repoOwner, repoName] = GITHUB_REPOSITORY.split('/'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user