File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11# commitlint
22
3- A simple GitHub action to run commitlint CLI Checks.
3+ A simple GitHub action to run [ ` @commitlint/cli ` ] ( https://www.npmjs.com/package/@commitlint/cli ) checks.
4+
5+ Following commits are linted based on the action ` event_name ` .
6+ - ` push ` : The last commit
7+ - from ` HEAD~1 ` to ` HEAD `
8+ - ` pull_request `
9+ - from ` ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} ` to ` ${{ github.event.pull_request.head.sha }} `
410
511## Usage
612
1016 name : Commitlint Check
1117 runs-on : ubuntu-latest
1218 steps :
13- # For getting the commitlint config
19+ # Needed to get the commitlint config
1420 - name : Checkout Repository
1521 uses : actions/checkout@v4
1622 with :
2329```
2430
2531<!-- prettier-ignore-start -->
26- | Inputs | Required | Description |
27- | ----------------------| ----------| ------------------------------|
28- | ` commitlint_version ` | | Version of commitlint to use |
32+ | Inputs | Default value | Description |
33+ | ----------------------| --------------- | ------------------------------|
34+ | ` commitlint_version ` | ` latest ` | Custom version of commitlint |
2935<!-- prettier-ignore-end -->
3036
3137Furthermore, see [ action.yml] ( action.yml )
Original file line number Diff line number Diff line change 1- name : ' commitlint'
1+ name : ' commitlint-cli-action '
22author : ' Dafnik'
3- description : ' A simple GitHub action to run commitlint CLI Checks .'
3+ description : ' A simple GitHub action to run @ commitlint/cli checks .'
44branding :
55 icon : ' git-commit'
66 color : ' purple'
You can’t perform that action at this time.
0 commit comments