Skip to content

fix: show what each skipped row skipped, and cut long subjects at a word - #351

Merged
shenxianpeng merged 2 commits into
mainfrom
feature/clearer-skipped-rows
Nov 23, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
feature/clearer-skipped-rows

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The "All checks" listing in the PR comment, job summary and step log said the same skip reason up to four times, gave skipped rows no value, so two ⊘ name rows could not be told apart, and cut subjects mid-word at 60 characters.

  • Skipped rows. When every skipped check shares one reason, the sentence under the verdict says it once, and each skipped row shows what it skipped: the commit's subject, or the author's name or email. With several reasons, rows keep their reason as before.
  • Long values. Rows cap at 80 characters instead of 60, so a subject written to the usual 72 columns fits. A longer one is cut at a word, with ….
  • Description row. A passing PR description row says what was found (no AI attribution, or the tools it names) instead of staying empty.

Before and after

The listing for a pull request with one commit from pre-commit.ci, whose author is in ignore_authors:

Before:

Pull request
  ✔ title        feat: add a config-source input that reads the config fro...
  ✔ description
Commits
  ✔ b938a9b      feat: add a config-source input that reads the config fro...
  ⊘ 1cc7934      skipped: author pre-commit-ci[bot] is in [commit].ignore_authors
Author
  ✔ name         Xianpeng Shen
  ⊘ name         skipped: author pre-commit-ci[bot] is in [commit].ignore_authors
  ✔ email        [email protected]
  ⊘ email        skipped: author pre-commit-ci[bot] is in [commit].ignore_authors
Branch
  ✔ branch       feature/config-source

After:

Pull request
  ✔ title        feat: add a config-source input that reads the config from the base branch
  ✔ description  no AI attribution
Commits
  ✔ b938a9b      feat: add a config-source input that reads the config from the base branch
  ⊘ 1cc7934      chore: auto fixes from pre-commit.com hooks
Author
  ✔ name         Xianpeng Shen
  ⊘ name         pre-commit-ci[bot]
  ✔ email        [email protected]
  ⊘ email        66853113+pre-commit-ci[bot]@users.noreply.github.com
Branch
  ✔ branch       feature/config-source

The sentence above the listing is unchanged: Skipped because author pre-commit-ci[bot] is in ignore_authors.

Tests

  • New TestListingRows: one reason said once with values in the rows (report and step log), different reasons kept per row, an unexplained skip still says skipped, the cut at a word, the description row, and the author carried by each author scope.
  • Two expectations updated for the new cap. 387 tests pass, coverage stays at 100%.

- When every skipped check shares one reason, the sentence under the
  verdict says it once and each skipped row shows the commit subject or
  the author it skipped, rather than repeating the reason.
- Rows cap at 80 characters instead of 60, cut at a word, with an
  ellipsis.
- A passing PR description row says what was found: no AI attribution,
  or the tools it names.
@shenxianpeng
shenxianpeng requested a review from a team as a code owner November 23, 2026 19:43
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 865955e3-5e97-44aa-837a-c229a95304ba
Commits

Reviewing files that changed from the base of the PR and between 4e72674 and 3f9d4db.

Files selected for processing: 2

  • main.py
  • main_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shenxianpeng shenxianpeng added the bug Something isn't working label Nov 23, 2026 — with Claude
@shenxianpeng shenxianpeng self-assigned this Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✔ Commit Check passed

✔ Pull request: 2 passed
✔ Commits: 2 passed
✔ Author: 2 passed
✔ Branch: passed

All 7 checks
Pull request
  ✔ title        fix: show what each skipped row skipped, and cut long subjects at a word
  ✔ description  no AI attribution
Commits
  ✔ f68838f      fix: show what each skipped row skipped, and cut long subjects at a word
  ✔ 3f9d4db      Merge remote-tracking branch 'origin/main' into feature/clearer-skipped-rows
Author
  ✔ name         Xianpeng Shen
  ✔ email        [email protected]
Branch
  ✔ branch       feature/clearer-skipped-rows

Checked by Commit Check 2.23.0 · Rules · Check before you push

@github-actions github-actions Bot added the ai-assisted Written with the help of an AI tool label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4e72674) to head (3f9d4db).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #351   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines         1228      1257   +29     
=========================================
+ Hits          1228      1257   +29     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shenxianpeng
shenxianpeng merged commit 400794e into main Nov 23, 2026
18 checks passed
@shenxianpeng
shenxianpeng deleted the feature/clearer-skipped-rows branch November 23, 2026 19:48
@shenxianpeng shenxianpeng removed the ai-assisted Written with the help of an AI tool label Nov 23, 2026 — with Claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant