Update commit on branch refresh and validate commit exists on save

Refresh button now always updates the commit to the latest SHA instead
of preserving the stale one in edit mode. Both create and update routes
verify the commit still exists on GitHub before persisting.
This commit is contained in:
tdurieux
2026-05-06 21:14:53 +03:00
parent d1d6257512
commit d9104c2ec2
3 changed files with 18 additions and 4 deletions
+3
View File
@@ -102,6 +102,9 @@
<div class="invalid-feedback" ng-show="anonymize.commit.$error.pattern || anonymize.commit.$error.required">
The commit SHA is not valid.
</div>
<div class="invalid-feedback" ng-show="anonymize.commit.$error.exists">
This commit no longer exists in the repository. Click refresh to get the latest.
</div>
</div>
</div>