From 621cd4153e5ccb8ba0ec95a43c22078655acd748 Mon Sep 17 00:00:00 2001 From: Matthew Runo <74583+inktomi@users.noreply.github.com> Date: Mon, 15 Aug 2022 15:25:39 -0700 Subject: [PATCH] Fixes #6024. Adding documentation for exit codes used by 'gh' --- pkg/cmd/root/help_topic.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cmd/root/help_topic.go b/pkg/cmd/root/help_topic.go index c2c6ce0ac..231b102f3 100644 --- a/pkg/cmd/root/help_topic.go +++ b/pkg/cmd/root/help_topic.go @@ -138,6 +138,10 @@ var HelpTopics = map[string]map[string]string{ - If a command fails for any reason, the exit code will be 1 + - If a command is running but gets cancelled, the exit code will be 2 + + - If a command encounters an authentication issue, the exit code will be 4 + NOTE: It is possible that a particular command may have more exit codes, so it is a good practice to check documentation for the command if you are relying on exit codes to control some behavior.