mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
23 lines
826 B
Plaintext
23 lines
826 B
Plaintext
::
|
|
::::
|
|
::
|
|
/- *story
|
|
:- %say
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
|
[[=prose ~] =desk cas=case ~]
|
|
==
|
|
::
|
|
:: Add a commit message to a given case on a given desk. Stores conflicting messages.
|
|
::
|
|
=/ our p.bec
|
|
=? desk =(*^desk desk) q.bec :: use current desk if user didn't provide
|
|
?: !(~(has in .^((set ^desk) %cd /(scot %p our)/$/(scot %da now))) desk)
|
|
~& >> "Error: desk {<desk>} does not exist."
|
|
helm-pass+[%d %noop ~]
|
|
=? cas =(*case cas) da+now :: use current commit if cas not provided
|
|
|
|
=/ tak .^(tako:clay %cs /(scot %p our)/[desk]/(scot cas)/tako/~)
|
|
=/ tale=story .^(story %cx /(scot %p our)/[desk]/(scot %da now)/story)
|
|
=. tale (~(put ju tale) tak prose)
|
|
:- %helm-pass
|
|
[%c [%info desk %& [/story %ins story+!>(tale)]~]] |