Skip to content

Commit

Permalink
chore: change action name
Browse files Browse the repository at this point in the history
docs: enhance README.md
  • Loading branch information
Dafnik committed Jun 20, 2024
1 parent d9a0702 commit fcdbe44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# commitlint

A simple GitHub action to run commitlint CLI Checks.
A simple GitHub action to run [`@commitlint/cli`](https://www.npmjs.com/package/@commitlint/cli) checks.

Following commits are linted based on the action `event_name`.
- `push`: The last commit
- from `HEAD~1` to `HEAD`
- `pull_request`
- from `${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }}` to `${{ github.event.pull_request.head.sha }}`

## Usage

Expand All @@ -10,7 +16,7 @@ jobs:
name: Commitlint Check
runs-on: ubuntu-latest
steps:
# For getting the commitlint config
# Needed to get the commitlint config
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand All @@ -23,9 +29,9 @@ jobs:
```

<!-- prettier-ignore-start -->
| Inputs | Required | Description |
|----------------------|----------|------------------------------|
| `commitlint_version` | | Version of commitlint to use |
| Inputs | Default value | Description |
|----------------------|---------------|------------------------------|
| `commitlint_version` | `latest` | Custom version of commitlint |
<!-- prettier-ignore-end -->

Furthermore, see [action.yml](action.yml)
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'commitlint'
name: 'commitlint-cli-action'
author: 'Dafnik'
description: 'A simple GitHub action to run commitlint CLI Checks.'
description: 'A simple GitHub action to run @commitlint/cli checks.'
branding:
icon: 'git-commit'
color: 'purple'
Expand Down

0 comments on commit fcdbe44

Please sign in to comment.