Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve creating patch for PR review suggestions #111

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

2bndy5
Copy link
Contributor

@2bndy5 2bndy5 commented Jun 19, 2024

I discovered this trick when researching a solution to the problem reported in cpp-linter/cpp-linter-action#250

This adds the use of the following (undocumented) flag from pygit2:

INDENT_HEURISTIC

Use a heuristic that takes indentation and whitespace into account which generally can produce better diffs when dealing with ambiguous diff hunks.

I discovered this trick when researching a solution to the problem reported in cpp-linter/cpp-linter-action#250
@2bndy5 2bndy5 added the enhancement New feature or request label Jun 19, 2024
Apparently, pygit2.enums was added at the same time support for python v3.8 was dropped (in v1.14)
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9d34e8d) to head (9df9413).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #111   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1657      1663    +6     
=========================================
+ Hits          1657      1663    +6     

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

@2bndy5 2bndy5 merged commit da582d5 into main Jun 20, 2024
100 checks passed
@2bndy5 2bndy5 deleted the use-diff-flag branch June 20, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant