diff options
Diffstat (limited to 'bridge/github/config.go')
-rw-r--r-- | bridge/github/config.go | 15 |
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.") |