aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/jira
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/jira')
-rw-r--r--bridge/jira/config.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/bridge/jira/config.go b/bridge/jira/config.go
index 1a6ab18a..ffd3bdc1 100644
--- a/bridge/jira/config.go
+++ b/bridge/jira/config.go
@@ -79,13 +79,15 @@ func (j *Jira) Configure(repo *cache.RepoCache, params core.BridgeParams) (core.
}
login = l
default:
- login = params.Login
- if login == "" {
+ if params.Login == "" {
// TODO: validate username
login, err = input.Prompt("JIRA login", "login", input.Required)
- if err != nil {
- return nil, err
- }
+ } else {
+ // TODO: validate username
+ login = params.Login
+ }
+ if err != nil {
+ return nil, err
}
cred, err = promptCredOptions(repo, login, baseURL)
if err != nil {