rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN

Amine Hilaly created

Change summary

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(-)

Detailed changes

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

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")

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

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 <name> [flags]\fP
+\fBgit\-bug bridge rm name <name> [flags]\fP
 
 
 .SH DESCRIPTION

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

doc/md/git-bug_bridge_rm.md 🔗

@@ -7,7 +7,7 @@ Delete a configured bridge.
 Delete a configured bridge.
 
 ```
-git-bug bridge rm <name> [flags]
+git-bug bridge rm name <name> [flags]
 ```
 
 ### Options