File glab-disable_update_check.patch of Package glab
From 232c6c4924d2874a226cc072cd82328e85afa039 Mon Sep 17 00:00:00 2001
From: Johannes Kastl <git@johannes-kastl.de>
Date: Sun, 16 Feb 2025 10:30:09 +0100
Subject: [PATCH] disable update check
Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
---
commands/config/config.go | 2 +-
internal/config/config.yaml.lock | 2 +-
internal/config/config_stub.go | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/internal/config/config.yaml.lock b/internal/config/config.yaml.lock
index b783ffd2..dda86da1 100644
--- a/internal/config/config.yaml.lock
+++ b/internal/config/config.yaml.lock
@@ -7,7 +7,7 @@ browser:
# Set your desired Markdown renderer style. Available options are [dark, light, notty]. To set a custom style, refer to https://github.com/charmbracelet/glamour#styles
glamour_style: dark
# Allow glab to automatically check for updates and notify you when there are new updates.
-check_update: true
+check_update: false
# Last update check timestamp, used for checking when the last update check was performed.
last_update_check_timestamp:
# Whether or not to display hyperlink escape characters when listing items like issues or merge requests. Set to TRUE to display hyperlinks in TTYs only. Force hyperlinks by setting FORCE_HYPERLINKS=1 as an environment variable.
diff --git a/internal/config/config_stub.go b/internal/config/config_stub.go
index 9a11633f..4332a6c2 100644
--- a/internal/config/config_stub.go
+++ b/internal/config/config_stub.go
@@ -57,7 +57,7 @@ func rootConfig() *yaml.Node {
},
{
Kind: yaml.ScalarNode,
- Value: "true",
+ Value: "false",
},
{
HeadComment: "# Last update check timestamp, used for checking when the last update check was performed.",
--
2.47.2