Skip to content

OneCommit

Actions
Checks if pull request has single commit or not
v1.0.0
Latest
Star (6)

OneCommit Github Action

Validates pull request for maximum allowed commits

Usage

Create a github workflow in the .github folder, e.g. .github/workflows/onecommit.yml:

name: OneCommit
on: [pull_request]
jobs:
  oneCommit:
    runs-on: ubuntu-latest
    name: restrict commit messages
    steps:
      - uses: actions/checkout@v1
      - uses: Gaurang033/OneCommit@v1
        with:
          max_commits: 2

OneCommit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Checks if pull request has single commit or not
v1.0.0
Latest

OneCommit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.