A Github action that checks pull requests around PR titles, description and other metadata.
This check validates that the modified files in the PR follow these rules:
feat
requires a change to aREADME.md
.feat
requires a change to a unit test file and integration test files.fix
requires a change to a unit test file and integration test files.BREAKING CHANGE
section is formatted correctly, per the conventional commits spec.- No breaking changes announced for stable modules.
These rules are currently hard coded, in the future, we should consider using danger.js.
cd tools/prlint
yarn install
The steps for your Github action would look something like this -
steps:
- name: Checkout # checkout the package that contains prlint
uses: actions/checkout@v2
- name: Install & Build # install & build prlint
run: cd path/to/prlint && yarn install --frozen-lockfile && yarn build
- name: Lint
uses: ./path/to/prlint
env:
REPO_ROOT: ${{ github.workspace }}