radicle-heartwood-lfs/radicle-cli/examples/rad-inbox.md

5.6 KiB

$ cd heartwood
$ rad inbox
Your inbox is empty.
$ cd heartwood
$ rad issue open --title "No license file" --description "..." -q
✓ Synced with 1 node(s)
$ git commit -m "Change copyright" --allow-empty -q
$ git push rad HEAD:bob/copy
$ cd ..
$ cd radicle-git
$ git commit -m "Change copyright" --allow-empty -q
$ git push rad -o patch.message="Copyright fixes" HEAD:refs/patches
$ rad inbox --sort-by id
╭──────────────────────────────────────────────────────────────╮
│ heartwood                                                    │
├──────────────────────────────────────────────────────────────┤
│ 1   ●   issue    No license file    [  ..  ]   opened    now │
│ 2   ●   branch   Change copyright   bob/copy   created   now │
╰──────────────────────────────────────────────────────────────╯
$ rad inbox --all --sort-by id
╭──────────────────────────────────────────────────────────╮
│ radicle-git                                              │
├──────────────────────────────────────────────────────────┤
│ 3   ●   patch   Copyright fixes   [ ... ]   opened   now │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ heartwood                                                    │
├──────────────────────────────────────────────────────────────┤
│ 1   ●   issue    No license file    [  ..  ]   opened    now │
│ 2   ●   branch   Change copyright   bob/copy   created   now │
╰──────────────────────────────────────────────────────────────╯
$ rad inbox show 2
commit 141c9073066e3910f1dfe356904a0120542e1cc9
Author: radicle <radicle@localhost>
Date:   Thu Dec 15 17:28:04 2022 +0000

    Change copyright

commit f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354
Author: anonymous <anonymous@radicle.xyz>
Date:   Mon Jan 1 14:39:16 2018 +0000

    Second commit

commit 08c788dd1be6315de09e3fe09b5b1b7a2b8711d9
Author: anonymous <anonymous@radicle.xyz>
Date:   Mon Jan 1 14:39:16 2018 +0000

    Initial commit
$ rad inbox list --sort-by id
╭──────────────────────────────────────────────────────────────╮
│ heartwood                                                    │
├──────────────────────────────────────────────────────────────┤
│ 1   ●   issue    No license file    [ ... ]    opened    now │
│ 2       branch   Change copyright   bob/copy   created   now │
╰──────────────────────────────────────────────────────────────╯
$ rad inbox show 1
╭──────────────────────────────────────────────────╮
│ Title   No license file                          │
│ Issue   [ ...                                  ] │
│ Author  bob z6Mkt67…v4N1tRk                      │
│ Status  open                                     │
│                                                  │
│ ...                                              │
╰──────────────────────────────────────────────────╯
$ rad inbox clear
✓ Cleared 2 item(s) from your inbox
$ rad inbox
Your inbox is empty.
$ rad inbox --all
╭──────────────────────────────────────────────────────────╮
│ radicle-git                                              │
├──────────────────────────────────────────────────────────┤
│ 3   ●   patch   Copyright fixes   [ ... ]   opened   now │
╰──────────────────────────────────────────────────────────╯
$ rad inbox clear --all
✓ Cleared 1 item(s) from your inbox
$ rad inbox clear --all
Your inbox is empty.