From 8d6bdb65074f9e75c014b86dd744b7bba72b349b Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Fri, 7 Jun 2019 01:28:52 +0200 Subject: [PATCH] rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN --- bridge/github/import_test.go | 4 ++-- commands/bridge_configure.go | 2 +- doc/man/git-bug-bridge-configure.1 | 8 ++++---- doc/man/git-bug-bridge-rm.1 | 2 +- doc/md/git-bug_bridge_configure.md | 8 ++++---- doc/md/git-bug_bridge_rm.md | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go index 9704e56f1cf51bb0b1dae26d889e2b80cacbaff9..24356f344496a1ca9f246e4071a711851c2a9db2 100644 --- a/bridge/github/import_test.go +++ b/bridge/github/import_test.go @@ -133,9 +133,9 @@ func Test_Importer(t *testing.T) { defer backend.Close() interrupt.RegisterCleaner(backend.Close) - token := os.Getenv("GITHUB_TOKEN") + token := os.Getenv("GITHUB_TOKEN_PRIVATE") if token == "" { - t.Skip("Env var GITHUB_TOKEN missing") + t.Skip("Env var GITHUB_TOKEN_PRIVATE missing") } importer := &githubImporter{} diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go index cecfe139272aa1128729ac05cf3d588389bbffb4..61d969d1d9d50de8199a70efb221c02769cbca48 100644 --- a/commands/bridge_configure.go +++ b/commands/bridge_configure.go @@ -84,7 +84,7 @@ func promptTarget() (string, error) { line, err := bufio.NewReader(os.Stdin).ReadString('\n') if err != nil { - return "", fmt.Errorf("got err: '%v' '%v'", line, err) + return "", err } line = strings.TrimRight(line, "\n") diff --git a/doc/man/git-bug-bridge-configure.1 b/doc/man/git-bug-bridge-configure.1 index 21ea7df1cb1e775e14f0ddc643c35b68159b9421..fa6feed5bdef029cce656d16b2a3713fa82c8afd 100644 --- a/doc/man/git-bug-bridge-configure.1 +++ b/doc/man/git-bug-bridge-configure.1 @@ -75,9 +75,9 @@ Detected projects: Select option: 1 -[0]: user provided token -[1]: interactive token creation -Select option: 0 +[1]: user provided token +[2]: interactive token creation +Select option: 1 You can generate a new token by visiting https://github.com/settings/tokens. Choose 'Generate new token' and set the necessary access scope for your repository. @@ -88,7 +88,7 @@ Public: Private: \- 'repo' : to be able to read private repositories -Enter token: +Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700 Successfully configured bridge: default # For Github diff --git a/doc/man/git-bug-bridge-rm.1 b/doc/man/git-bug-bridge-rm.1 index 324d4237d56fe8c3561eb5680c88429373d85900..630eba93c25b9877007651f879bee42d48585179 100644 --- a/doc/man/git-bug-bridge-rm.1 +++ b/doc/man/git-bug-bridge-rm.1 @@ -10,7 +10,7 @@ git\-bug\-bridge\-rm \- Delete a configured bridge. .SH SYNOPSIS .PP -\fBgit\-bug bridge rm [flags]\fP +\fBgit\-bug bridge rm name [flags]\fP .SH DESCRIPTION diff --git a/doc/md/git-bug_bridge_configure.md b/doc/md/git-bug_bridge_configure.md index db603b4853eeb247ca6e1173142c075c54ddead8..788b39862091ce9be9585878894a0f9794609af2 100644 --- a/doc/md/git-bug_bridge_configure.md +++ b/doc/md/git-bug_bridge_configure.md @@ -29,9 +29,9 @@ Detected projects: Select option: 1 -[0]: user provided token -[1]: interactive token creation -Select option: 0 +[1]: user provided token +[2]: interactive token creation +Select option: 1 You can generate a new token by visiting https://github.com/settings/tokens. Choose 'Generate new token' and set the necessary access scope for your repository. @@ -42,7 +42,7 @@ Public: Private: - 'repo' : to be able to read private repositories -Enter token: +Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700 Successfully configured bridge: default # For Github diff --git a/doc/md/git-bug_bridge_rm.md b/doc/md/git-bug_bridge_rm.md index 54941b2f8fa69cb5bae71f23aabf48ecbeb06b84..ab58e96940e341b8e31e878892146d61fd918b2f 100644 --- a/doc/md/git-bug_bridge_rm.md +++ b/doc/md/git-bug_bridge_rm.md @@ -7,7 +7,7 @@ Delete a configured bridge. Delete a configured bridge. ``` -git-bug bridge rm [flags] +git-bug bridge rm name [flags] ``` ### Options