Skip to content

Add Fingerprint field to formatters.Change#813

Merged
reuvenharrison merged 4 commits intomainfrom
add-change-fingerprint
Mar 17, 2026
Merged

Add Fingerprint field to formatters.Change#813
reuvenharrison merged 4 commits intomainfrom
add-change-fingerprint

Conversation

@reuvenharrison
Copy link
Collaborator

Summary

  • Adds a Fingerprint field to formatters.Change, computed as SHA256({id}:{operation}:{path}:{text})[:12]
  • Fingerprint is stable across commits — the same breaking change always gets the same fingerprint
  • Included in JSON and YAML output; computed once in NewChanges() and flows through all consumers
  • Adds docs/FINGERPRINT.md explaining the feature with output examples and Go API usage

Use cases

  • Track review decisions across commits (approve a change on commit A, carry the decision forward to commit B)
  • Deduplicate changes across multiple runs
  • Reference specific changes in external systems without storing full change text

🤖 Generated with Claude Code

reuvenharrison and others added 2 commits March 17, 2026 20:10
Computes SHA256({id}:{operation}:{path}:{text})[:12] for each change.
Stable across commits for the same breaking change — enables the
enterprise approve/reject workflow to carry forward approval state
when new commits are pushed to a PR.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Documents the new fingerprint field on formatters.Change:
what it is, why it's useful, output format examples, and Go API usage.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.28%. Comparing base (9d14fd6) to head (fccd76a).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #813   +/-   ##
=======================================
  Coverage   89.28%   89.28%           
=======================================
  Files         240      240           
  Lines       12715    12724    +9     
=======================================
+ Hits        11352    11361    +9     
  Misses        907      907           
  Partials      456      456           
Flag Coverage Δ
unittests 89.28% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@reuvenharrison reuvenharrison merged commit cfd790f into main Mar 17, 2026
14 checks passed
@reuvenharrison reuvenharrison deleted the add-change-fingerprint branch March 17, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants