name: Check User Permission
on:
  issues:
    types: [opened, edited]
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions-cool/check-user-permission@v2| Name | Desc | Type | Required | 
|---|---|---|---|
| token | GitHub token | string | ✖ | 
| require | Test whether the user meets the required permission | string | ✖ | 
| username | Obtained from the context by default, can also be customized to pass in | string | ✖ | 
| check-bot | Check whether the user is a bot | boolean | ✖ | 
| check-contributor | Check whether the user is contributor | boolean | ✖ | 
| error-if-missing | Error if require or check if false | boolean | ✖ | 
- User permission: 
admin>write>read usernamesupport github contextactor: The Defaulttriggering_actor: The username of the user that initiated the workflow run even re-run- Example: 
username: github.triggering_actor 
user-permission:read|write|adminrequire-result: The result of requiretrue|falsecheck-result: The result of checktrue|false
How to use?
You are very welcome to try it out and put forward your comments. You can use the following methods:
- Report bugs or consult with Issue
 - Submit Pull Request to improve the code of 
check-user-permission 
欢迎加入 钉钉交流群
