git-cliff icon indicating copy to clipboard operation
git-cliff copied to clipboard

feat: support skipping based on blame.ignoreRevsFile

Open michen00 opened this issue 7 months ago • 1 comments
trafficstars

Description

Added support for:

  • excluding hashes listed in the blame ignore file from the changelog
  • excluding commits that only touch the blame ignore file from the changelog

Motivation and Context

This PR addresses #1054.

How Has This Been Tested?

I just ran cargo test.

Screenshots / Logs (if applicable)

Types of Changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation (no code change)
  • [ ] Refactor (refactoring production code)
  • [ ] Other

Checklist:

  • [x] My code follows the code style of this project.
  • [x] I have updated the documentation accordingly.
  • [x] I have formatted the code with rustfmt.
  • [x] I checked the lints with clippy.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

michen00 avatar Apr 08 '25 04:04 michen00

Codecov Report

Attention: Patch coverage is 41.66667% with 14 lines in your changes missing coverage. Please review.

Project coverage is 41.09%. Comparing base (aec41be) to head (8103008).

Files with missing lines Patch % Lines
git-cliff-core/src/changelog.rs 56.25% 7 Missing :warning:
git-cliff/src/lib.rs 0.00% 7 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1125      +/-   ##
==========================================
- Coverage   41.09%   41.09%   -0.00%     
==========================================
  Files          21       21              
  Lines        1845     1867      +22     
==========================================
+ Hits          758      767       +9     
- Misses       1087     1100      +13     
Flag Coverage Δ
unit-tests 41.09% <41.67%> (-<0.01%) :arrow_down:

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

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

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Apr 08 '25 04:04 codecov-commenter