Action to checks the count of commits in pull request.
Excepted source branches (possible to pass multiple branches separated by ;)
Possible count of commits (default 1)
In the checkout task fetch-depth should be set to 0
commits-count:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: commits-count
uses: fcarrero/[email protected]
with:
except-branches: 'main;master;release'