Skip to content

Commit 01d98b6

Browse files
committed
BREAKING CHNAGE: remove options
1 parent f5fc99e commit 01d98b6

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ jobs:
4848
branch: true
4949
author-name: true
5050
author-email: true
51-
commit-signoff: true
52-
merge-base: false
53-
imperative: false
5451
job-summary: true
5552
pr-comments: ${{ github.event_name == 'pull_request' }}
5653
```
@@ -101,26 +98,6 @@ jobs:
10198
- **Description**: check committer author email.
10299
- Default: `true`
103100

104-
### `commit-signoff`
105-
106-
- **Description**: check committer commit signature.
107-
- Default: `true`
108-
109-
### `merge-base`
110-
111-
- **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-
- Default: `false`
123-
124101
### `dry-run`
125102

126103
- **Description**: run checks without failing. exit code is 0; otherwise is 1.

action.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ inputs:
2121
description: check committer author email
2222
required: false
2323
default: true
24-
commit-signoff:
25-
description: check committer commit signature
26-
required: false
27-
default: true
28-
merge-base:
29-
description: check current branch is rebased onto target branch
30-
required: false
31-
default: false
32-
imperative:
33-
description: check commit message is in imperative mood
34-
required: false
35-
default: false
3624
dry-run:
3725
description: run checks without failing
3826
required: false
@@ -78,9 +66,6 @@ runs:
7866
BRANCH: ${{ inputs.branch }}
7967
AUTHOR_NAME: ${{ inputs.author-name }}
8068
AUTHOR_EMAIL: ${{ inputs.author-email }}
81-
COMMIT_SIGNOFF: ${{ inputs.commit-signoff }}
82-
MERGE_BASE: ${{ inputs.merge-base }}
83-
IMPERATIVE: ${{ inputs.imperative }}
8469
DRY_RUN: ${{ inputs.dry-run }}
8570
JOB_SUMMARY: ${{ inputs.job-summary }}
8671
PR_COMMENTS: ${{ inputs.pr-comments }}

main.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
BRANCH = os.getenv("BRANCH", "false")
1616
AUTHOR_NAME = os.getenv("AUTHOR_NAME", "false")
1717
AUTHOR_EMAIL = os.getenv("AUTHOR_EMAIL", "false")
18-
COMMIT_SIGNOFF = os.getenv("COMMIT_SIGNOFF", "false")
19-
MERGE_BASE = os.getenv("MERGE_BASE", "false")
20-
IMPERATIVE = os.getenv("IMPERATIVE", "true")
2118
DRY_RUN = os.getenv("DRY_RUN", "false")
2219
JOB_SUMMARY = os.getenv("JOB_SUMMARY", "false")
2320
PR_COMMENTS = os.getenv("PR_COMMENTS", "false")
@@ -33,9 +30,6 @@ def log_env_vars():
3330
print(f"BRANCH = {BRANCH}")
3431
print(f"AUTHOR_NAME = {AUTHOR_NAME}")
3532
print(f"AUTHOR_EMAIL = {AUTHOR_EMAIL}")
36-
print(f"COMMIT_SIGNOFF = {COMMIT_SIGNOFF}")
37-
print(f"MERGE_BASE = {MERGE_BASE}")
38-
print(f"IMPERATIVE = {IMPERATIVE}")
3933
print(f"DRY_RUN = {DRY_RUN}")
4034
print(f"JOB_SUMMARY = {JOB_SUMMARY}")
4135
print(f"PR_COMMENTS = {PR_COMMENTS}\n")
@@ -48,9 +42,6 @@ def run_commit_check() -> int:
4842
"--branch",
4943
"--author-name",
5044
"--author-email",
51-
"--commit-signoff",
52-
"--merge-base",
53-
"--imperative",
5445
]
5546
args = [
5647
arg
@@ -61,9 +52,6 @@ def run_commit_check() -> int:
6152
BRANCH,
6253
AUTHOR_NAME,
6354
AUTHOR_EMAIL,
64-
COMMIT_SIGNOFF,
65-
MERGE_BASE,
66-
IMPERATIVE,
6755
],
6856
)
6957
if value == "true"

0 commit comments

Comments
 (0)