You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-35Lines changed: 22 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,18 @@
8
8
9
9
A GitHub Action for checking commit message formatting, branch naming, committer name, email, commit signoff, and more.
10
10
11
+
## What's New in v2
12
+
13
+
> [!IMPORTANT]
14
+
> This v2 release introduces several 🚨**breaking changes**. Please review the [Breaking Changes](#breaking-changes) section carefully before upgrading.
15
+
16
+
### Breaking Changes
17
+
18
+
- Removed support for `commit-signoff`, `merge-base`, and `imperative` inputs — now configured via `commit-check.toml` or `cchk.toml`.
19
+
- Deprecated `.commit-check.yml` in favor of `commit-check.toml` or `cchk.toml`.
20
+
- Changed default values of `author-name` and `author-email` inputs to `false` to align with the default behavior in commit-check.
21
+
- Upgraded core dependency [`commit-check`](https://github.com/commit-check/commit-check) to [**v2.0.0**](https://github.com/commit-check/commit-check/releases/tag/v2.0.0).
22
+
11
23
## Table of Contents
12
24
13
25
*[Usage](#usage)
@@ -38,19 +50,16 @@ jobs:
38
50
steps:
39
51
- uses: actions/checkout@v5
40
52
with:
41
-
ref: ${{ github.event.pull_request.head.sha }} #checkout PR HEAD commit
- **Description**: check current branch is rebased onto the target branch.
112
-
- Default: `false`
113
-
114
-
> [!IMPORTANT]
115
-
> `merge-base` is an experimental feature. By default, it's disabled.
116
-
>
117
-
> To use this feature, you need to fetch all history for all branches by setting `fetch-depth: 0` in `actions/checkout`.
118
-
119
-
### `imperative`
120
-
121
-
- **Description**: check commit message is imperative mood.
122
109
- Default: `false`
123
110
124
111
### `dry-run`
@@ -141,7 +128,7 @@ jobs:
141
128
>
142
129
> This feature currently doesn’t work with forked repositories. For more details, refer to issue [#77](https://github.com/commit-check/commit-check-action/issues/77).
143
130
144
-
Note: the default rule of above inputs is following [this configuration](https://github.com/commit-check/commit-check/blob/main/.commit-check.yml). If you want to customize, just add your `.commit-check.yml` config file under your repository root directory.
131
+
Note: the default rule of above inputs is following [this configuration](https://github.com/commit-check/commit-check-action/blob/main/commit-check.toml). If you want to customize, just add your [`commit-check.toml`](https://commit-check.github.io/commit-check/configuration.html) config file under your repository root directory.
0 commit comments