-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle edge case with same review sha after force-push (#122)
When the force-push doesn't rewrite the whole history, then it may happen that the review SHA and head SHA are the same. This means that the changed files can't be resolved, like when the force-push rewrites the whole history, but the action doesn't recognize that it's "force-push" scenario and doesn't remove any review. Simply comparing the review SHA and head SHA can be used to catch this scenario and then treat it as a force-push.
- Loading branch information
Showing
3 changed files
with
58 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters