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
{{ message }}
Repository navigation
Commit a9ee0cf
Browse filesBrowse the repository at this point in the historyBrowse files
*[Badging Your Repository](#badging-your-repository)
31
32
*[Versioning](#versioning)
@@ -164,7 +165,41 @@ jobs:
164
165
> ```
165
166
> Without `edited`, only the initial title (at PR creation) is validated.
166
167
167
-
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.
168
+
## Advanced Configuration
169
+
170
+
The [Optional Inputs](#optional-inputs) above cover the most common settings.
171
+
For everything else (e.g., `subject-capitalized`, `require-signed-off-by`,
172
+
`ai-attribution`, custom `allow-commit-types`, etc.), you have two approaches:
173
+
174
+
### Via Environment Variables
175
+
176
+
Set any `CCHK_*` environment variable in your workflow step — no config file required:
177
+
178
+
```yaml
179
+
- uses: commit-check/commit-check-action@v2
180
+
env:
181
+
CCHK_SUBJECT_CAPITALIZED: "true"
182
+
CCHK_REQUIRE_SIGNED_OFF_BY: "true"
183
+
CCHK_AI_ATTRIBUTION: "forbid"
184
+
CCHK_ALLOW_COMMIT_TYPES: "feat,fix,docs,chore"
185
+
```
186
+
187
+
All available environment variables follow the naming convention:
188
+
`CCHK_`+ uppercase option name with underscores instead of hyphens. See the
0 commit comments