-
Notifications
You must be signed in to change notification settings - Fork 0
feat: use commit-check-action to check PR title #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+33
−19
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5f63fb5
feat: use commit-check-action to check PR title
shenxianpeng 3682522
Apply suggestion from @shenxianpeng
shenxianpeng 30c7dff
Merge branch 'origin/main' into feature/use-commit-check-action
shenxianpeng bacc06a
fix: restore cspell config fallback for consuming repos
shenxianpeng 55b94dc
fix: dynamically resolve default branch for cspell config fallback
shenxianpeng f50ca36
revert: restore PR author's original simplified cspell check
shenxianpeng 0abd6b3
fix: restructure checkouts to keep spell check unchanged
shenxianpeng 33fda12
Apply suggestions from code review
shenxianpeng cc140c1
fix: correct variable name typo in cspell fallback
shenxianpeng a4561ac
fix: checkout .github repo to root so commit-check-action finds config
shenxianpeng d225ee5
docs: improve comment explaining root-level checkout of .github repo
shenxianpeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [commit] | ||
| conventional_commits = true | ||
| subject_capitalized = false | ||
| subject_imperative = false | ||
| subject_max_length = 200 | ||
| subject_min_length = 1 | ||
| allow_commit_types = [ | ||
| "fix", | ||
| "feat", | ||
| "build", | ||
| "chore", | ||
| "docs", | ||
| "style", | ||
| "refactor", | ||
| "remove", | ||
| "deprecate", | ||
| "security", | ||
| "add", | ||
| "perf", | ||
| "test", | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: cpp-linter/.github
Length of output: 432
🌐 Web query:
What is the config schema for commit-check-action v2.9.0 commit-check.toml? What are the valid config keys under the [commit] section?💡 Result:
The commit-check-action v2.9.0 uses a TOML-based configuration file (typically named commit-check.toml or cchk.toml) to define validation rules [1][2]. The configuration is managed by the underlying commit-check engine [3][4]. Valid configuration keys under the [commit] section include: conventional_commits (bool): Enables or disables validation against the Conventional Commits specification [5][6]. message_pattern (str, optional): A custom regex pattern to validate commit messages, which overrides the conventional_commits rule [6]. subject_capitalized (bool): Enforces that the commit subject starts with a capital letter [5][6]. subject_imperative (bool): Enforces that the commit subject uses the imperative mood [5][6]. subject_max_length (int, optional): Sets the maximum allowed length for the commit subject [5][6]. subject_min_length (int, optional): Sets the minimum required length for the commit subject [5][6]. allow_commit_types (list[str]): A list of allowed commit types (e.g., feat, fix, chore) [5][6]. allow_merge_commits (bool): Whether merge commits are permitted [5][6]. allow_revert_commits (bool): Whether revert commits are permitted [5][6]. allow_empty_commits (bool): Whether empty commits are permitted [5][6]. allow_fixup_commits (bool): Whether fixup! commits are permitted [5][6]. allow_wip_commits (bool): Whether work-in-progress (e.g., WIP:) commits are permitted [5][6]. require_body (bool): Whether a body is required in the commit message [5][6]. require_signed_off_by (bool): Whether a "Signed-off-by" footer is required [5][6]. required_signoff_name (str, optional): A specific name required in the sign-off footer [6]. required_signoff_email (str, optional): A specific email required in the sign-off footer [6]. ignore_authors (list[str]): A list of author or co-author names to bypass commit checks (e.g., bots like dependabot[bot]) [5][7][6]. ai_attribution (str): Configures how AI-generated commit trailers are handled (e.g., ignore or forbid) [6]. Additionally, the configuration supports an inherit_from key at the root level to allow sharing and extending base configurations from other files, URLs, or GitHub repositories [1][2]. Users can also configure branch-specific rules under a separate [branch] section [5][6]. For IDE support, the schema is published on SchemaStore, allowing for automated validation and autocompletion in compatible editors [1].
Citations:
🏁 Script executed:
Repository: cpp-linter/.github
Length of output: 2006
Keep the subject length unlimited if that’s the intent
subject_max_length = 200changes the previous unlimitedsubject_length = 0behavior and will start rejecting longer subjects; use0or omit the cap if that restriction isn’t intended.🤖 Prompt for AI Agents