Skip to content

Commit fcdbe44

Browse files
committed
chore: change action name
docs: enhance README.md
1 parent d9a0702 commit fcdbe44

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
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

@@ -10,7 +16,7 @@ jobs:
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:
@@ -23,9 +29,9 @@ jobs:
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

3137
Furthermore, see [action.yml](action.yml)

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: 'commitlint'
1+
name: 'commitlint-cli-action'
22
author: 'Dafnik'
3-
description: 'A simple GitHub action to run commitlint CLI Checks.'
3+
description: 'A simple GitHub action to run @commitlint/cli checks.'
44
branding:
55
icon: 'git-commit'
66
color: 'purple'

0 commit comments

Comments
 (0)