mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
67cc10f55a
Hoon 151 merge %gh crashes on startup Conflicts: urb/urbit.pill urb/zod/app/dojo.hoon urb/zod/app/hood.hoon urb/zod/arvo/eyre.hoon urb/zod/arvo/ford.hoon urb/zod/arvo/gall.hoon urb/zod/arvo/hoon.hoon urb/zod/arvo/zuse.hoon urb/zod/gen/cat.hoon urb/zod/gen/ls.hoon urb/zod/gen/ls/subdir.hoon
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
:: This is a command-line ui for the %gh Github driver.
|
|
::
|
|
:: Usage:
|
|
:: :github &path /read{/endpoint}
|
|
:: :github &path /listen/{owner}/{repo}/{events...}
|
|
::
|
|
/- gh
|
|
!:
|
|
=> |%
|
|
++ diff-result
|
|
$% {$gh-issue issues:gh}
|
|
{$gh-issue-comment issue-comment:gh}
|
|
==
|
|
--
|
|
|_ {hid/bowl *}
|
|
++ poke-path
|
|
|= pax/path
|
|
:_ +>.$ :_ ~
|
|
[ost.hid %peer /into-the-mist [our.hid %gh] scry+x+pax]
|
|
++ diff-gh-issues
|
|
|= {way/wire issues:gh}
|
|
%- %- slog :~
|
|
leaf+"in repository {(trip login.owner.repository)}/{(trip name.repository)}:"
|
|
leaf+"{(trip login.sender)} {(trip -.action)} issue #{<number.issue>} {<title.issue>}"
|
|
?+ -.action *tank
|
|
?($assigned $unassigned)
|
|
leaf+"to {(trip login.assignee.action)}"
|
|
?($labeled $unlabeled)
|
|
leaf+"with {(trip name.label.action)}"
|
|
==
|
|
==
|
|
[~ +>.$]
|
|
++ diff-gh-issue-comment
|
|
|= {way/wire issue-comment:gh}
|
|
%- %- slog :~
|
|
leaf+"in repository {(trip login.owner.repository)}/{(trip name.repository)}:"
|
|
leaf+"{(trip login.sender)} commented on issue #{<number.issue>} {<title.issue>}:"
|
|
leaf+(trip body.comment)
|
|
==
|
|
[~ +>.$]
|
|
++ peek
|
|
|= {ren/@tas tyl/path}
|
|
^- (unit (unit (pair mark *)))
|
|
``noun+[ren tyl]
|
|
--
|