From: Karim Hamidou Date: Wed, 3 Jul 2024 14:16:25 +0000 (-0700) Subject: refresh menu and update readme X-Git-Tag: 0.5~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=378a69363636be3dee5e4a9b377d2aec539755c9;p=prguy.git refresh menu and update readme --- diff --git a/README.md b/README.md index 91ef07a..0280776 100644 --- 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) diff --git a/cmd/prguy/main.go b/cmd/prguy/main.go index ffc9b1f..6312403 100644 --- a/cmd/prguy/main.go +++ b/cmd/prguy/main.go @@ -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 index 0000000..b226314 Binary files /dev/null and b/preview.png differ