]> khamidou — GitHub mirrors - prguy.git/commitdiff
refresh menu and update readme
authorKarim Hamidou <karim@khamidou.com>
Wed, 3 Jul 2024 14:16:25 +0000 (07:16 -0700)
committerKarim Hamidou <karim@khamidou.com>
Wed, 3 Jul 2024 14:16:25 +0000 (07:16 -0700)
README.md
cmd/prguy/main.go
preview.png [new file with mode: 0644]

index 91ef07a6dcfe3c0fa9f578e0543b7ce10ab7593b..0280776cfbf1353bf7b143c860c0b5bc16bdc538 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1 +1,7 @@
-# prguy
\ No newline at end of file
+prguy is a simple systray tool to show you:
+- your PRs and their status
+- the PRs you've been asked to review
+
+This is what it looks like:
+
+![screenshot](preview.png)
index ffc9b1fd0d5bec1958910095f928e52f2884bb52..6312403b589891cb0bc3f7d79a2815ef5da52d17 100644 (file)
@@ -137,7 +137,7 @@ func setupMenu(ctx context.Context, cancel context.CancelFunc) {
 
 func onReady() {
        go func() {
-               ticker := time.NewTicker(1 * time.Minute)
+               ticker := time.NewTicker(10 * time.Minute)
                defer ticker.Stop() // Ensure the ticker is stopped when we're done with it
 
                ctx, cancel := context.WithCancel(context.Background())
@@ -148,6 +148,7 @@ func onReady() {
                                // refresh the menu every 15 minutes
                                cancel()
                                ctx, cancel = context.WithCancel(context.Background())
+                               fmt.Println("Refreshing menu")
                                setupMenu(ctx, cancel)
                        }
                }
diff --git a/preview.png b/preview.png
new file mode 100644 (file)
index 0000000..b226314
Binary files /dev/null and b/preview.png differ