Thanks to visit codestin.com
Credit goes to github.com

Skip to content

actions-cool/verify-files-modify

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

⚡ Verify Files Modify

Verify PR files modification.

Currently only pull_request and pull_request_target triggering is supported.

How to use ?

name: Verify Files modify

on:
  pull_request_target:
    types: [opened, edited, reopened, synchronize, ready_for_review]

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - name: verify-version
        uses: actions-cool/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          forbid-files: 'action.yml, LICENSE'
          forbid-paths: '.github/, dist/'
          comment: |
            Please don't modify this.
          close: true
Name Desc Type Required
token GitHub token string
forbid-files Forbid files. Higher than allowed. Support multiple string
forbid-paths Forbid paths. Higher than allowed. Support multiple string
allowed-files Allowed files. Support multiple string
allowed-paths Allowed paths. Support multiple string
skip-verify-authority Skip verify by creator authority. Option: read write admin string
comment Comment when verification success string
close Close PR when verification success boolean

Note

  • When PR come from fork, it requires pull_request_target to comment or close. When use pull_request_target, must read
  • When use pull_request and PR come from fork. It will show CI badge status only

Changelog

CHANGELOG

LICENSE

MIT

About

⚡ Verify PR files modification by GitHub Action.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •