File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src-cljs/frontend/controllers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 476
476
(let [api-ch (-> current-state :comms :api )
477
477
org-name (vcs-url/org-name vcs-url)
478
478
repo-name (vcs-url/repo-name vcs-url)
479
+ vcs-type (vcs-url/vcs-type vcs-url)
479
480
uuid frontend.async/*uuid*]
480
481
(go
481
- (let [api-result (<! (ajax/managed-ajax :post (gstring/format " /api/v1/project/%s/%s/%s/ssh" org-name repo-name build-num)))]
482
+ (let [api-result (<! (ajax/managed-ajax :post (gstring/format " /api/v1.1 /project/%s/%s/%s/%s/ ssh" vcs-type org-name repo-name build-num)))]
482
483
(put! api-ch [:retry-build (:status api-result) api-result])
483
484
(release-button! uuid (:status api-result))
484
485
(when (= :success (:status api-result))
492
493
(let [api-ch (-> current-state :comms :api )
493
494
org-name (vcs-url/org-name vcs-url)
494
495
repo-name (vcs-url/repo-name vcs-url)
496
+ vcs-type (vcs-url/vcs-type vcs-url)
495
497
uuid frontend.async/*uuid*]
496
498
(go
497
- (let [api-result (<! (ajax/managed-ajax :post (gstring/format " /api/v1/project/%s/%s/%s/ssh-users" org-name repo-name build-num)))]
499
+ (let [api-result (<! (ajax/managed-ajax :post (gstring/format " /api/v1.1 /project/%s/%s/%s/%s/ ssh-users" vcs-type org-name repo-name build-num)))]
498
500
(release-button! uuid (:status api-result))))))
499
501
500
502
(defmethod post-control-event! :followed-repo
You can’t perform that action at this time.
0 commit comments