Skip to content

fcarrero/pr-commits-count

 
 

Repository files navigation

PR Commits Count javascript action

Action to checks the count of commits in pull request.

Inputs

except-branches

Excepted source branches (possible to pass multiple branches separated by ;)

commits-count

Possible count of commits (default 1)

Example usage

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'

About

Action to checks count of commits.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.5%
  • Shell 12.5%