This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shows you updates on local repositories. Included here is a basic implementation of a notification system. A new database is created and updated after every fetch, with refs that have changed. The `rad inbox` command can then list items in the database and delete them.
- Loading branch information
Showing
21 changed files
with
1,466 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
``` ~alice | ||
$ cd heartwood | ||
$ rad inbox | ||
Your inbox is empty. | ||
``` | ||
|
||
``` ~bob | ||
$ 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 | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox --sort-by id | ||
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ | ||
โ heartwood โ | ||
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค | ||
โ 1 โ issue No license file [ .. ] opened now โ | ||
โ 2 โ branch Change copyright bob/copy created now โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox --all --sort-by id | ||
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ | ||
โ heartwood โ | ||
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค | ||
โ 1 โ issue No license file [ .. ] opened now โ | ||
โ 2 โ branch Change copyright bob/copy created now โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ | ||
โ radicle-git โ | ||
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค | ||
โ 3 โ patch Copyright fixes [ ... ] opened now โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
``` | ||
|
||
``` ~alice | ||
$ 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 <[email protected]> | ||
Date: Mon Jan 1 14:39:16 2018 +0000 | ||
Second commit | ||
commit 08c788dd1be6315de09e3fe09b5b1b7a2b8711d9 | ||
Author: anonymous <[email protected]> | ||
Date: Mon Jan 1 14:39:16 2018 +0000 | ||
Initial commit | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox list --sort-by id | ||
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ | ||
โ heartwood โ | ||
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค | ||
โ 1 โ issue No license file [ ... ] opened now โ | ||
โ 2 branch Change copyright bob/copy created now โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox show 1 | ||
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ | ||
โ Title No license file โ | ||
โ Issue [ ... ] โ | ||
โ Author bob z6Mkt67โฆv4N1tRk โ | ||
โ Status open โ | ||
โ โ | ||
โ ... โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
``` | ||
|
||
``` ~alice | ||
$ 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 โ | ||
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox clear --all | ||
โ Cleared 1 item(s) from your inbox | ||
``` | ||
|
||
``` ~alice | ||
$ rad inbox clear --all | ||
Your inbox is empty. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.