FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

remarkablemark/commitlint: 📓 Lint commit messages with GitHub Actions. · GitHub

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

70 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commitlint

📓 Lint commit messages with GitHub Actions.

Quick Start

# .github/workflows/commitlint.yml
name: commitlint
on: push
jobs:
  commitlint:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Commitlint
        uses: remarkablemark/commitlint@v2
        with:
          checkout: true

Usage

Validate last commit message or all commit messages in a pull request:

- uses: remarkablemark/commitlint@v2
  with:
    checkout: true

See action.yml

Inputs

checkout

Optional: Whether to checkout the repository. Defaults to false:

- uses: remarkablemark/commitlint@v2
  with:
    checkout: true

Omit this input if the repository has already been checked out with all of the history:

- uses: actions/checkout@v7
  with:
    fetch-depth: 0
- uses: remarkablemark/commitlint@v2

config

Optional: The config to enforce conventional commits. Defaults to @commitlint/config-conventional:

- uses: remarkablemark/commitlint@v2
  with:
    config: '@commitlint/config-angular'

from

Optional: The lower end of the commit range to lint. Defaults to HEAD~1:

- uses: remarkablemark/commitlint@v2
  with:
    from: HEAD~

version

Optional: The version of @commitlint/cli. Defaults to latest:

- uses: remarkablemark/commitlint@v2
  with:
    version: 21.0.0

License

MIT

About

📓 Lint commit messages with GitHub Actions.

Topics

Resources

Code of conduct

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors


Back | FazBrowse Home | New Git URL