This action is to enforce CODEOWNERS entries on PR files.
The path to the CODEOWNERS file in the repository. The default value is .github/CODEOWNERS.
The message prefix to post on the PR.
The message suffix to post on the PR.
Enable checkboxes when listing the files in the comment. The default value is false.
Enable the inclusion of deleted files when checking for code owners. The default value is false.
Ignore specific files using a new-line-separated list of files.
The token used to authenticate with GitHub and post the comments on the PR. Defaults to github.token.
The output comment that should be posted on the pull request.
- name: Enforce Codeowners
id: enforce-codeowners
uses: worksome/enforce-codeowner@v1
with:
codeOwnersPath: '.github/CODEOWNERS'
commentPrefix: |
The following files do not have code owners:
commentSuffix: ''
checkboxes: true
includeDeleted: false
ignoredFiles: |
README.md
composer.json
token: ${{ github.token }}- name: Enforce Codeowners
id: enforce-codeowners
uses: worksome/enforce-codeowner/composite/with-comment@v1
with:
codeOwnersPath: '.github/CODEOWNERS'
commentPrefix: |
The following files do not have code owners:
commentSuffix: ''
checkboxes: true
includeDeleted: false
ignoredFiles: |
README.md
composer.json
token: ${{ github.token }}