From c805142f00edf6d0581ddb0ffc99144a4b719bf4 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Mon, 22 Jul 2019 18:05:03 +0200 Subject: bridge/github: fix project visibility prompt --- bridge/github/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge') diff --git a/bridge/github/config.go b/bridge/github/config.go index a9a25ec0..5aced56f 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -558,12 +558,12 @@ func promptProjectVisibility() (bool, error) { line = strings.TrimRight(line, "\n") index, err := strconv.Atoi(line) - if err != nil || (index != 0 && index != 1) { + if err != nil || (index != 1 && index != 2) { fmt.Println("invalid input") continue } // return true for public repositories, false for private - return index == 0, nil + return index == 1, nil } } -- cgit