when staring build, place shareable URL in history
allows refresh, etc. to preserve form contents
@@ -177,6 +177,12 @@ $(function(){
repo = repo.replace(/(^\/)|(\/?$)/g, '');
var image = new Image('gh', repo + '/' + ref);
+ var url = updateUrl();
+ // add fixed build URL to window history so that reload with refill the form
+ if (window.location.href !== url) {
+ window.history.pushState({}, '', url);
+ }
+
$('#build-progress .progress-bar').addClass('hidden');
log.clear();
