mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-23 23:12:04 +03:00
story: let |story-set take a case and make it optional
This commit is contained in:
parent
1d111db103
commit
2626c32085
@ -3,13 +3,14 @@
|
|||||||
::
|
::
|
||||||
:- %say
|
:- %say
|
||||||
|= $: [now=@da eny=@uvJ bec=beak]
|
|= $: [now=@da eny=@uvJ bec=beak]
|
||||||
[[syd=desk =aeon:clay [title=@t body=@t] ~] ~]
|
[[syd=desk [title=@t body=@t] ~] cas=case ~]
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
:: Add a commit message to a given case on a given desk (modifies in place)
|
:: Add a commit message to a given case on a given desk (modifies in place)
|
||||||
::
|
::
|
||||||
=/ our p.bec
|
=/ our p.bec
|
||||||
=/ tak .^(tako:clay %cs /(scot %p our)/base/(scot %ud aeon)/tako/~)
|
=? cas =(*case cas) [%da now] :: set current commit when cas not provided
|
||||||
|
=/ tak .^(tako:clay %cs /(scot %p our)/base/(scot cas)/tako/~)
|
||||||
=/ tale=(map tako:clay [@t @t])
|
=/ tale=(map tako:clay [@t @t])
|
||||||
.^((map tako:clay [@t @t]) %cx /(scot %p our)/[syd]/(scot %da now)/story)
|
.^((map tako:clay [@t @t]) %cx /(scot %p our)/[syd]/(scot %da now)/story)
|
||||||
=. tale (~(put by tale) tak [title body])
|
=. tale (~(put by tale) tak [title body])
|
||||||
|
Loading…
Reference in New Issue
Block a user