diff options
author | Michael Muré <batolettre@gmail.com> | 2019-07-22 18:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 18:25:48 +0200 |
commit | 8d05b4792ce8f42509df3fbd64b930e8d8b641f1 (patch) | |
tree | 3c3d42b9d88a64a5321bd961dcbc56add908a483 | |
parent | 23bf30a505cb8b1dc1b813eb563129add3176238 (diff) | |
parent | c805142f00edf6d0581ddb0ffc99144a4b719bf4 (diff) | |
download | git-bug-8d05b4792ce8f42509df3fbd64b930e8d8b641f1.tar.gz |
Merge pull request #183 from A-Hilaly/bridge-github-fix
fix project visibility prompt in Github bridge configuration
-rw-r--r-- | bridge/github/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } } |