A peer-to-peer stack for code collaboration
Add user feedback on issue close and unify wording (#506)
Merle Breitkreuza322dfbd8863
diff --git a/bin/rad-diff b/bin/rad-diffindex f683c3b..57fcf4f 100755--- a/bin/rad-diff+++ b/bin/rad-diff@@ -150,7 +150,7 @@:author-email author-email:patch patch})(match (simple-create-diff! machine diff)- ['n] (put-str! (string-append "Proposing #" (show n)+ ['n] (put-str! (string-append "Proposing diff #" (show n)" to " machine))_ (put-str! (error/no-number-returned :diff)))))@@ -333,10 +333,10 @@(if (eq? new-state :accepted)(match (push-diff! machine n):ok (edit-state-with-feedback!- (string-append "Diff " (show n) " has been " (pretty-state new-state) " and merged."))+ (string-append "Diff #" (show n) " has been " (pretty-state new-state) " and merged."))_ (exit! 1))(edit-state-with-feedback!- (string-append "Diff " (show n) " has been " (pretty-state new-state)))))+ (string-append "Diff #" (show n) " has been " (pretty-state new-state)))))(cmd-parse-failure (error/whole-item-number :diff)))(cmd-parse-failure (error/missing-item-number :issue "change the state of")))))@@ -348,7 +348,7 @@(do(verify-diff-number n machine)(simple-add-comment! machine n comment (get-git-username!))- (put-str! (string-append "Added comment to Diff " (show n))))+ (put-str! (string-append "Added comment to diff #" (show n))))(cmd-parse-failure (error/whole-item-number :diff)))(cmd-parse-failure (error/missing-item-number :issue "comment on")))))diff --git a/bin/rad-issue b/bin/rad-issueindex 779daf0..e5b518e 100755--- a/bin/rad-issue+++ b/bin/rad-issue@@ -253,7 +253,8 @@(catch 'daemon-error(do(verify-issue-number n machine)- (simple-edit-issue! machine n {:state :closed}))+ (simple-edit-issue! machine n {:state :closed})+ (put-str! (string-append "Issue #" (show n) " has been closed.")))(fn [_](put-str! (error/state-change-failure :issue "closed"))(exit! 1)))@@ -268,7 +269,7 @@(do(verify-issue-number n machine)(simple-add-comment! machine n comment (get-git-username!))- (put-str! (string-append "Added comment to issue " (show n))))+ (put-str! (string-append "Added comment to issue #" (show n))))(cmd-parse-failure (error/whole-item-number :issue)))(cmd-parse-failure (error/missing-item-number :issue "comment on")))))