Skip to content
play

GitHub Action

commit-body-check

v1.0.2 Latest version

commit-body-check

play

commit-body-check

A GitHub Action that verifies wheather commits have bodys

Installation

Copy and paste the following snippet into your .yml file.

              

- name: commit-body-check

uses: tim-actions/[email protected]

Learn more about this action in tim-actions/commit-body-check

Choose a version

commit-body-check

A GitHub Action that verifies wheather commits have bodys

Dependencies

GitHub Action Tim-Zhang/get-pr-commits

Usage

Add .github/workflows/sanity-check.yml with the following:

name: Sanity check
on: [pull_request]

jobs:
  commits_check_job:
    runs-on: ubuntu-latest
    name: Commits Check
    steps:
    - name: Get PR Commits
      id: 'get-pr-commits'
      uses: tim-actions/get-pr-commits@master
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: Commit Body Check
      uses: tim-actions/commit-body-check@master
      with:
        commits: ${{ steps.get-pr-commits.outputs.commits }