mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	Revert "devops: auto close questions (#29513)"
This reverts commit 09d0a099a2dd0ff060267ac2d68de03c62fc46b4.
This commit is contained in:
		
							parent
							
								
									bc2d4302f5
								
							
						
					
					
						commit
						fb48bfcbe6
					
				
							
								
								
									
										26
									
								
								.github/workflows/close_issue_questions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/close_issue_questions.yml
									
									
									
									
										vendored
									
									
								
							@ -1,26 +0,0 @@
 | 
			
		||||
name: Close Issue on Specific Text
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  issues:
 | 
			
		||||
    types: [opened]
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
    issues: write
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  close_issue_if_forbidden_text_found:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Close issue with specific text
 | 
			
		||||
        uses: actions/github-script@v7
 | 
			
		||||
        with:
 | 
			
		||||
          script: |
 | 
			
		||||
            const issueBody = context.payload.issue.body;
 | 
			
		||||
            if (!issueBody.includes('Please do not submit this issue.') || !issueBody.includes('This issue tracker is reserved for bug reports and feature requests.'))
 | 
			
		||||
              return;
 | 
			
		||||
            await github.rest.issues.update({
 | 
			
		||||
              owner: context.repo.owner,
 | 
			
		||||
              repo: context.repo.repo,
 | 
			
		||||
              issue_number: context.payload.issue.number,
 | 
			
		||||
              state: 'closed'
 | 
			
		||||
            });
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user