This action lints Pull Requests for correctness by checking the body and title.
Required The GitHub token to use for authentication.
If there are particular body sections (markdown headings) to require being present. Checks are not case sensitive and are made using startsWith
so you don't need to write out the entire header.
Boolean. Disables checking for empty PR body.
Boolean. Disables checking title for area slug.
Boolean. Allows PR body to have empty markdown sections.
A JSON.stringify
'd array of issues detected with the given pull request.
# This removes all unnecessary permissions, the ones needed will be set below.
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions: {}
jobs:
lint-pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: xirzec/pr-lint@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
required-sections: |
Packages impacted by this PR
Describe the problem that is addressed by this PR