mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 06:30:26 +02:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user