aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-07 01:28:52 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-07 01:43:48 +0200
commit8d6bdb65074f9e75c014b86dd744b7bba72b349b (patch)
tree5c013f133b060cb2f6e8984171a34491d8f8c20a
parenta6c8b6b78dcf9b31c73fe35545e3fb754e06851a (diff)
downloadgit-bug-8d6bdb65074f9e75c014b86dd744b7bba72b349b.tar.gz
rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN
-rw-r--r--bridge/github/import_test.go4
-rw-r--r--commands/bridge_configure.go2
-rw-r--r--doc/man/git-bug-bridge-configure.18
-rw-r--r--doc/man/git-bug-bridge-rm.12
-rw-r--r--doc/md/git-bug_bridge_configure.md8
-rw-r--r--doc/md/git-bug_bridge_rm.md2
6 files changed, 13 insertions, 13 deletions
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go
index 9704e56f..24356f34 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 cecfe139..61d969d1 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 21ea7df1..fa6feed5 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 324d4237..630eba93 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 <name> [flags]\fP
+\fBgit\-bug bridge rm name <name> [flags]\fP
.SH DESCRIPTION
diff --git a/doc/md/git-bug_bridge_configure.md b/doc/md/git-bug_bridge_configure.md
index db603b48..788b3986 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 54941b2f..ab58e969 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 <name> [flags]
+git-bug bridge rm name <name> [flags]
```
### Options