pr checks return distinct exit code for PENDING checks (#7866)
This commit is contained in:
parent
6f618b522c
commit
9fc571499f
4 changed files with 15 additions and 7 deletions
|
|
@ -34,10 +34,11 @@ var updaterEnabled = ""
|
|||
type exitCode int
|
||||
|
||||
const (
|
||||
exitOK exitCode = 0
|
||||
exitError exitCode = 1
|
||||
exitCancel exitCode = 2
|
||||
exitAuth exitCode = 4
|
||||
exitOK exitCode = 0
|
||||
exitError exitCode = 1
|
||||
exitCancel exitCode = 2
|
||||
exitAuth exitCode = 4
|
||||
exitPending exitCode = 8
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
@ -113,6 +114,8 @@ func mainRun() exitCode {
|
|||
var authError *root.AuthError
|
||||
if err == cmdutil.SilentError {
|
||||
return exitError
|
||||
} else if err == cmdutil.PendingError {
|
||||
return exitPending
|
||||
} else if cmdutil.IsUserCancellation(err) {
|
||||
if errors.Is(err, terminal.InterruptErr) {
|
||||
// ensure the next shell prompt will start on its own line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue