diff options
author | Amine <hilalyamine@gmail.com> | 2019-08-23 11:09:03 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-08-31 23:02:20 +0200 |
commit | 65d7ce7c05a458beb306984c6fd3629839872845 (patch) | |
tree | a90e6b96b635bfefb11f8c685cb626c9710f2ce4 /bridge/github | |
parent | 0381400bfda16f910ca87b0258ddda1c1732fbc7 (diff) | |
download | git-bug-65d7ce7c05a458beb306984c6fd3629839872845.tar.gz |
commands: enhance flag description
bridge/github: improve configuration logic
Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge/github')
-rw-r--r-- | bridge/github/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go index f55ea1b4..954bf845 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -45,7 +45,7 @@ func (g *Github) Configure(repo repository.RepoCommon, params core.BridgeParams) var project string if params.Token != "" && - !(params.URL != "" || (params.Project != "" && params.Owner != "")) { + (params.URL == "" && (params.Project == "" || params.Owner == "")) { return nil, fmt.Errorf("you must provide a project URL or Owner/Name to configure this bridge with a token") } |