Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: commit-check/commit-check
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 00104bd
Choose a base ref
...
head repository: commit-check/commit-check
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6778ce7
Choose a head ref
  • 10 commits
  • 20 files changed
  • 3 contributors

Commits on Nov 19, 2026

  1. Configuration menu
    Copy the full SHA
    0d6785e View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2026

  1. feat: quote the commit message once above the rules it failed (#719)

    * feat: quote the commit message once above the rules it failed
    
    When several message rules failed, each block repeated the message after
    its rule name. The message is now quoted once in a gutter: the lines a
    rule points at are red (the subject, the AI trailer a fix would remove)
    and a missing Signed-off-by trailer is shown in green where it goes.
    Each block then names its rule only. One failure, --compact and the JSON
    output are unchanged.
    
    * docs: add before and after screenshot for the PR
    
    * docs: remove the PR screenshot
    
    * test: type the quoted-message helper as returning nothing
    
    * fix: quote the whole message when only subject rules failed
    
    When the rules that failed reported only the subject, the quote showed
    the subject alone, so an AI trailer another rule pointed at was not on
    screen. The quote now reads the whole message.
    
    * refactor: split the AI-trailer marking out of _marked_lines
    
    Keeps the function under SonarCloud's cognitive complexity limit.
    
    ---------
    
    Co-authored-by: Xianpeng Shen <[email protected]>
    shenxianpeng and shenxianpeng authored Nov 20, 2026
    Configuration menu
    Copy the full SHA
    e40dc50 View commit details
    Browse the repository at this point in the history
  2. docs: pin the README to v2.23.1 (#720)

    * docs: pin the README to v2.24.0
    
    * docs: pin the README to v2.23.1
    shenxianpeng authored Nov 20, 2026
    Configuration menu
    Copy the full SHA
    3dce116 View commit details
    Browse the repository at this point in the history
  3. chore: name the PyPI project links the way PyPI expects (#721)

    * docs: add before/after screenshot for review
    
    * docs: drop the review screenshot
    
    * chore: name the PyPI project links the way PyPI expects
    
    ---------
    
    Co-authored-by: Xianpeng Shen <[email protected]>
    shenxianpeng and shenxianpeng authored Nov 20, 2026
    Configuration menu
    Copy the full SHA
    029bf06 View commit details
    Browse the repository at this point in the history
  4. fix: let git's revert subjects through and accept the revert type (#724)

    * fix: let git's revert subjects through and accept the revert type
    
    git revert writes 'Reapply "..."' when the commit it reverts is itself a
    revert (git 2.43+); CC001 now exempts it as it already did 'Revert "...".
    CC007 counts it as a revert, so allow_revert_commits = false still
    rejects it.
    
    The subject length rules no longer measure 'Revert "..."' or
    'Reapply "..."': the nine extra characters are git's, and a subject that
    fit the limit was rejected once reverted.
    
    revert joins the default commit types. v1 accepted "revert: ...", the
    Conventional Commits FAQ recommends it for a hand-written revert, and
    16 owners in public configs add it back by hand.
    
    * docs: add the before and after image for the pull request
    
    * docs: drop the pull request image from the tree
    shenxianpeng authored Nov 20, 2026
    Configuration menu
    Copy the full SHA
    8263be1 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2026

  1. feat: carry config notices in the result and report an empty run as s…

    …kip (#728)
    
    * feat: carry config notices in the result and report an empty run as skip
    
    A setting that is not in force was printed on stderr only, so
    --format json, the Python API and everything built on them returned a
    plain pass. The JSON result and the API's dict now have a top-level
    "notices" list, each entry {"setting", "message"}, empty when there are
    none. It carries the lines the CLI already prints: an inherit_from that
    was not loaded or is nested, an unknown setting, an invalid CCHK_*
    value, a [files] section that is not a table or a [files] value that
    cannot be used, and --files or --branch with nothing configured. The
    stderr lines are unchanged.
    
    [pull_request] keys are now checked: check, ai_label and
    body_ai_attribution (the GitHub App's) and ai_declaration_checkboxes
    (the CLI's) are known, and any other key is reported as unknown, with
    the closest match. [jira] is still not checked.
    
    A run with no checks at all is now "skip", as a run whose every check
    skipped already was. The exit code stays 0, and text output is
    unchanged.
    
    * docs: say an ignore run is a skip only without declaration checkboxes
    
    With [pull_request] ai_declaration_checkboxes set, --ai-attribution-only
    runs CC501 under the default ignore policy too, so the status is pass or
    fail, not skip.
    invictustitan2 authored Nov 21, 2026
    Configuration menu
    Copy the full SHA
    dee54af View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2026

  1. feat: add body_max_line_length to limit commit body lines (CC018) (#730)

    * feat: add body_max_line_length to limit commit body lines (CC018)
    
    A new [commit] body_max_line_length setting, off by default, fails a
    commit whose body has a line longer than the limit. Lines with a URL,
    lines with no space and the closing trailer block are not counted, and
    dependabot and renovate commits skip it, as they do the subject length
    rules.
    
    * test: split the CC001 and CC018 assertion in two
    
    * fix: match URL schemes in any case for CC018
    
    * fix: read committed messages whole and keep folded trailers for CC018
    
    Any URL scheme now marks a line as a URL line, a trailer value that
    continues on an indented line stays in the trailer block, and an
    existing commit is read with %B, since %s joins a line written right
    under the subject into the subject.
    
    * fix: count CJK lines and name the long lines for CC018
    
    A line with no space was left out so that a path or a hash is not
    counted, but Chinese, Japanese and Korean prose has no spaces either: a
    74-character Chinese line passed, and adding one English word made it
    fail. A line with a wide character is now counted.
    
    The error names the lines, counting the subject as line 1, so the long
    line can be found without the colour marking (CI logs, editors).
    
    * test: split the CJK line assertion in two
    
    * fix: match a URL right after CJK text for CC018
    
    Chinese and Japanese text runs straight into an address (参见https://...), and \b found no boundary between the two, so the line was counted.
    
    * perf: start CC018's URL scheme where a word starts
    
    With no word boundary, the URL pattern tried a match at every letter of a long run with no ://, so a 20,000-letter body line took over a second. A lookbehind starts the scheme only where a run of scheme characters starts, and still finds 参见https://...
    shenxianpeng authored Nov 22, 2026
    Configuration menu
    Copy the full SHA
    4032000 View commit details
    Browse the repository at this point in the history
  2. docs: pin the README to v2.24.0 (#731)

    Co-authored-by: Xianpeng Shen <[email protected]>
    shenxianpeng and shenxianpeng authored Nov 22, 2026
    Configuration menu
    Copy the full SHA
    87cf6e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2026

  1. fix: do not judge the fixup!, squash! and amend! subjects git writes (#…

    …734)
    
    * fix: do not judge the fixup!, squash! and amend! subjects git writes
    
    git commit --fixup, --squash and --fixup=amend: put "fixup! ", "squash! "
    or "amend! " in front of the target commit's subject. CC004 counted that
    prefix, so a fixup of a subject that fit the limit was rejected, and CC002
    rejected every one of them for its lower-case "fixup!". CC003 skipped only
    "fixup! ".
    
    The subject rules (CC002-CC005) now skip these subjects, as they skip a
    merge or revert subject. Whether they are allowed stays CC009's call.
    
    Closes #733
    
    * test: keep the imperative bypass benchmark as it was
    
    Move the squash! and amend! cases into their own test, so the benchmarked
    one measures the same two calls as on main.
    shenxianpeng authored Nov 23, 2026
    Configuration menu
    Copy the full SHA
    e8bd51a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6778ce7 View commit details
    Browse the repository at this point in the history
Loading