aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/config.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-23 19:21:14 +0100
committeramine <hilalyamine@gmail.com>2019-11-23 19:26:27 +0100
commit09db1cda71c87d87e700eabbecf89e10a0923d43 (patch)
tree7212ba27f0bfb00d5218f3e6cf645ba4d24a6596 /bridge/github/config.go
parent014e754fcdcd59c633e2bfc490fe34b0dcd0d89a (diff)
downloadgit-bug-09db1cda71c87d87e700eabbecf89e10a0923d43.tar.gz
commands: add bridge configure --token-id flag
Diffstat (limited to 'bridge/github/config.go')
-rw-r--r--bridge/github/config.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go
index f24b48eb..45b2bd44 100644
--- a/bridge/github/config.go
+++ b/bridge/github/config.go
@@ -318,21 +318,6 @@ func promptTokenOptions(repo repository.RepoCommon, owner, project string) (*cor
}
}
-func tokenAlreadyExist(repo repository.RepoCommon, id string) (bool, error) {
- tokens, err := core.LoadTokens(repo)
- if err != nil {
- return false, err
- }
-
- for _, token := range tokens {
- if token.Target == target && token.Value == id {
- return true, nil
- }
- }
-
- return false, nil
-}
-
func promptToken() (string, error) {
fmt.Println("You can generate a new token by visiting https://github.com/settings/tokens.")
fmt.Println("Choose 'Generate new token' and set the necessary access scope for your repository.")