welpo / git-sumi

The non-opinionated Rust-based commit message linter.
https://sumi.rs/
Apache License 2.0
10 stars 0 forks source link

✨ feat(display)!: add markdown table format #7

Closed welpo closed 4 months ago

welpo commented 4 months ago

Summary

Adds display option for parsed commit messages as Markdown tables.

💥 BREAKING CHANGE: The old 'table' format is now 'cli'. 'table' now refers to the markdown table.

Example output:

| Key                  | Value                     |
|----------------------|---------------------------|
| Gitmoji              | ✨                        |
| Commit type          | feat                      |
| Scope                | display                   |
| Description          | add markdown table format |
| Is breaking          | true                      |
| Breaking description | add markdown table format |

Or, rendered as a table:

Key Value
Gitmoji
Commit type feat
Scope display
Description add markdown table format
Is breaking true
Breaking description add markdown table format

How has this been tested?


Type of change


Checklist

codecov-commenter commented 4 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (312e12c) 93.53% compared to head (9e70399) 93.39%.

:exclamation: Current head 9e70399 differs from pull request most recent head 2d76b24. Consider uploading reports for the commit 2d76b24 to get more accurate results

Files Patch % Lines
src/lint/display.rs 96.42% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7 +/- ## ========================================== - Coverage 93.53% 93.39% -0.15% ========================================== Files 10 10 Lines 619 621 +2 ========================================== + Hits 579 580 +1 - Misses 40 41 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.