[skip ci] Move auto-closer rules
This commit is contained in:
		
							parent
							
								
									773f88f8d4
								
							
						
					
					
						commit
						d02c0142e5
					
				
							
								
								
									
										45
									
								
								.github/workflows/issue_closer.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								.github/workflows/issue_closer.yml
									
									
									
									
										vendored
									
									
								
							@ -1,45 +0,0 @@
 | 
			
		||||
name: Issue closer
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  issues:
 | 
			
		||||
    types: [opened, edited, reopened]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  autoclose:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Autoclose issues
 | 
			
		||||
        uses: arkon/issue-closer-action@v3.4
 | 
			
		||||
        with:
 | 
			
		||||
          repo-token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
          ignoreLabel: do-not-autoclose
 | 
			
		||||
          rules: |
 | 
			
		||||
            [
 | 
			
		||||
              {
 | 
			
		||||
                "type": "body",
 | 
			
		||||
                "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
 | 
			
		||||
                "message": "The acknowledgment section was not removed."
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "body",
 | 
			
		||||
                "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*",
 | 
			
		||||
                "message": "Requested information in the template was not filled out."
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "title",
 | 
			
		||||
                "regex": ".*(Source name|Short description).*",
 | 
			
		||||
                "message": "You did not fill out the description in the title"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "both",
 | 
			
		||||
                "regex": ".*(mangago|mangafox|hq\\s*dragon|manga\\s*host|supermangas|superhentais|union\\s*mangas|yes\\s*mangas|manhuascan|heroscan|manhwahot|leitor\\.?net|manga\\s*livre|tsuki\\s*mangas|manga\\s*yabu|mangas\\.in|mangas\\.pw|hentaikai|toptoon\\+?).*",
 | 
			
		||||
                "ignoreCase": true,
 | 
			
		||||
                "message": "{match} will not be added back as it is too difficult to maintain. Read #3475 for more information"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "both",
 | 
			
		||||
                "regex": ".*(teamx|tqneplus|manga\\s*disk|komiktap|gourmet\\s*scans|manga\\s*crimson|mangawow|voidscans|hikari\\s*scans|mangagegecesi|piedpiperfb|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org).*",
 | 
			
		||||
                "ignoreCase": true,
 | 
			
		||||
                "message": "{match} will not be added back as the Scanlator team has requested it to be removed. Read #3475 for more information"
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
							
								
								
									
										33
									
								
								.github/workflows/issue_moderator.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/issue_moderator.yml
									
									
									
									
										vendored
									
									
								
							@ -2,7 +2,7 @@ name: Issue moderator
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  issues:
 | 
			
		||||
    types: [opened]
 | 
			
		||||
    types: [opened, edited, reopened]
 | 
			
		||||
  issue_comment:
 | 
			
		||||
    types: [created]
 | 
			
		||||
 | 
			
		||||
@ -16,3 +16,34 @@ jobs:
 | 
			
		||||
          repo-token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
          duplicate-check-enabled: true
 | 
			
		||||
          duplicate-check-label: Source request
 | 
			
		||||
          auto-close-rules: |
 | 
			
		||||
            [
 | 
			
		||||
              {
 | 
			
		||||
                "type": "body",
 | 
			
		||||
                "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
 | 
			
		||||
                "message": "The acknowledgment section was not removed."
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "body",
 | 
			
		||||
                "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*",
 | 
			
		||||
                "message": "Requested information in the template was not filled out."
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "title",
 | 
			
		||||
                "regex": ".*(Source name|Short description).*",
 | 
			
		||||
                "message": "You did not fill out the description in the title"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "both",
 | 
			
		||||
                "regex": ".*(mangago|mangafox|hq\\s*dragon|manga\\s*host|supermangas|superhentais|union\\s*mangas|yes\\s*mangas|manhuascan|heroscan|manhwahot|leitor\\.?net|manga\\s*livre|tsuki\\s*mangas|manga\\s*yabu|mangas\\.in|mangas\\.pw|hentaikai|toptoon\\+?).*",
 | 
			
		||||
                "ignoreCase": true,
 | 
			
		||||
                "message": "{match} will not be added back as it is too difficult to maintain. Read #3475 for more information"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "type": "both",
 | 
			
		||||
                "regex": ".*(teamx|tqneplus|manga\\s*disk|komiktap|gourmet\\s*scans|manga\\s*crimson|mangawow|voidscans|hikari\\s*scans|mangagegecesi|piedpiperfb|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org).*",
 | 
			
		||||
                "ignoreCase": true,
 | 
			
		||||
                "message": "{match} will not be added back as the Scanlator team has requested it to be removed. Read #3475 for more information"
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
          auto-close-ignore-label: do-not-autoclose
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user