mirror of
				https://github.com/AdguardTeam/AdGuardHome.git
				synced 2022-10-30 02:30:37 +03:00 
			
		
		
		
	Pull request: filtering: restore rewrite behavior with other question types
Updates #4008. Squashed commit of the following: commit babbc29331cfc2603c0c3b0987f5ba926690ec3e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Dec 24 18:46:20 2021 +0300 filtering: restore rewrite behavior with other question types
This commit is contained in:
		
							
								
								
									
										56
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										56
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -103,32 +103,30 @@
 | 
			
		||||
    - 'name': 'Run snapshot build'
 | 
			
		||||
      'run': 'make SIGN=0 VERBOSE=1 build-release build-docker'
 | 
			
		||||
 | 
			
		||||
  # TODO(a.garipov): Remove once AWS/Slack are back online.
 | 
			
		||||
  #
 | 
			
		||||
  # 'notify':
 | 
			
		||||
  #   'needs':
 | 
			
		||||
  #   - 'build-release'
 | 
			
		||||
  #   # Secrets are not passed to workflows that are triggered by a pull request
 | 
			
		||||
  #   # from a fork.
 | 
			
		||||
  #   #
 | 
			
		||||
  #   # Use always() to signal to the runner that this job must run even if the
 | 
			
		||||
  #   # previous ones failed.
 | 
			
		||||
  #   'if':
 | 
			
		||||
  #     ${{ always() &&
 | 
			
		||||
  #       (
 | 
			
		||||
  #         github.event_name == 'push' ||
 | 
			
		||||
  #         github.event.pull_request.head.repo.full_name == github.repository
 | 
			
		||||
  #       )
 | 
			
		||||
  #     }}
 | 
			
		||||
  #   'runs-on': 'ubuntu-latest'
 | 
			
		||||
  #   'steps':
 | 
			
		||||
  #   - 'name': 'Conclusion'
 | 
			
		||||
  #     'uses': 'technote-space/workflow-conclusion-action@v1'
 | 
			
		||||
  #   - 'name': 'Send Slack notif'
 | 
			
		||||
  #     'uses': '8398a7/action-slack@v3'
 | 
			
		||||
  #     'with':
 | 
			
		||||
  #       'status': '${{ env.WORKFLOW_CONCLUSION }}'
 | 
			
		||||
  #       'fields': 'repo, message, commit, author, workflow'
 | 
			
		||||
  #     'env':
 | 
			
		||||
  #       'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}'
 | 
			
		||||
  #       'SLACK_WEBHOOK_URL': '${{ secrets.SLACK_WEBHOOK_URL }}'
 | 
			
		||||
  'notify':
 | 
			
		||||
    'needs':
 | 
			
		||||
    - 'build-release'
 | 
			
		||||
    # Secrets are not passed to workflows that are triggered by a pull request
 | 
			
		||||
    # from a fork.
 | 
			
		||||
    #
 | 
			
		||||
    # Use always() to signal to the runner that this job must run even if the
 | 
			
		||||
    # previous ones failed.
 | 
			
		||||
    'if':
 | 
			
		||||
      ${{ always() &&
 | 
			
		||||
        (
 | 
			
		||||
          github.event_name == 'push' ||
 | 
			
		||||
          github.event.pull_request.head.repo.full_name == github.repository
 | 
			
		||||
        )
 | 
			
		||||
      }}
 | 
			
		||||
    'runs-on': 'ubuntu-latest'
 | 
			
		||||
    'steps':
 | 
			
		||||
    - 'name': 'Conclusion'
 | 
			
		||||
      'uses': 'technote-space/workflow-conclusion-action@v1'
 | 
			
		||||
    - 'name': 'Send Slack notif'
 | 
			
		||||
      'uses': '8398a7/action-slack@v3'
 | 
			
		||||
      'with':
 | 
			
		||||
        'status': '${{ env.WORKFLOW_CONCLUSION }}'
 | 
			
		||||
        'fields': 'repo, message, commit, author, workflow'
 | 
			
		||||
      'env':
 | 
			
		||||
        'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}'
 | 
			
		||||
        'SLACK_WEBHOOK_URL': '${{ secrets.SLACK_WEBHOOK_URL }}'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										58
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										58
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							@@ -33,33 +33,31 @@
 | 
			
		||||
    - 'name': 'Run ESLint'
 | 
			
		||||
      'run': 'npm --prefix="./client" run lint'
 | 
			
		||||
 | 
			
		||||
  # TODO(a.garipov): Remove once AWS/Slack are back online.
 | 
			
		||||
  #
 | 
			
		||||
  # 'notify':
 | 
			
		||||
  #   'needs':
 | 
			
		||||
  #   - 'go-lint'
 | 
			
		||||
  #   - 'eslint'
 | 
			
		||||
  #   # Secrets are not passed to workflows that are triggered by a pull request
 | 
			
		||||
  #   # from a fork.
 | 
			
		||||
  #   #
 | 
			
		||||
  #   # Use always() to signal to the runner that this job must run even if the
 | 
			
		||||
  #   # previous ones failed.
 | 
			
		||||
  #   'if':
 | 
			
		||||
  #     ${{ always() &&
 | 
			
		||||
  #       (
 | 
			
		||||
  #         github.event_name == 'push' ||
 | 
			
		||||
  #         github.event.pull_request.head.repo.full_name == github.repository
 | 
			
		||||
  #       )
 | 
			
		||||
  #     }}
 | 
			
		||||
  #   'runs-on': 'ubuntu-latest'
 | 
			
		||||
  #   'steps':
 | 
			
		||||
  #   - 'name': 'Conclusion'
 | 
			
		||||
  #     'uses': 'technote-space/workflow-conclusion-action@v1'
 | 
			
		||||
  #   - 'name': 'Send Slack notif'
 | 
			
		||||
  #     'uses': '8398a7/action-slack@v3'
 | 
			
		||||
  #     'with':
 | 
			
		||||
  #       'status': '${{ env.WORKFLOW_CONCLUSION }}'
 | 
			
		||||
  #       'fields': 'repo, message, commit, author, workflow'
 | 
			
		||||
  #     'env':
 | 
			
		||||
  #       'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}'
 | 
			
		||||
  #       'SLACK_WEBHOOK_URL': '${{ secrets.SLACK_WEBHOOK_URL }}'
 | 
			
		||||
  'notify':
 | 
			
		||||
    'needs':
 | 
			
		||||
    - 'go-lint'
 | 
			
		||||
    - 'eslint'
 | 
			
		||||
    # Secrets are not passed to workflows that are triggered by a pull request
 | 
			
		||||
    # from a fork.
 | 
			
		||||
    #
 | 
			
		||||
    # Use always() to signal to the runner that this job must run even if the
 | 
			
		||||
    # previous ones failed.
 | 
			
		||||
    'if':
 | 
			
		||||
      ${{ always() &&
 | 
			
		||||
        (
 | 
			
		||||
          github.event_name == 'push' ||
 | 
			
		||||
          github.event.pull_request.head.repo.full_name == github.repository
 | 
			
		||||
        )
 | 
			
		||||
      }}
 | 
			
		||||
    'runs-on': 'ubuntu-latest'
 | 
			
		||||
    'steps':
 | 
			
		||||
    - 'name': 'Conclusion'
 | 
			
		||||
      'uses': 'technote-space/workflow-conclusion-action@v1'
 | 
			
		||||
    - 'name': 'Send Slack notif'
 | 
			
		||||
      'uses': '8398a7/action-slack@v3'
 | 
			
		||||
      'with':
 | 
			
		||||
        'status': '${{ env.WORKFLOW_CONCLUSION }}'
 | 
			
		||||
        'fields': 'repo, message, commit, author, workflow'
 | 
			
		||||
      'env':
 | 
			
		||||
        'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}'
 | 
			
		||||
        'SLACK_WEBHOOK_URL': '${{ secrets.SLACK_WEBHOOK_URL }}'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user