Merge pull request #183 from A-Hilaly/bridge-github-fix

Michael Muré created

fix project visibility prompt in Github bridge configuration

Change summary

bridge/github/config.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

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
 	}
 }