From 65d7ce7c05a458beb306984c6fd3629839872845 Mon Sep 17 00:00:00 2001 From: Amine Date: Fri, 23 Aug 2019 11:09:03 +0200 Subject: commands: enhance flag description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bridge/github: improve configuration logic Co-Authored-By: Michael Muré --- bridge/github/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/github') 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") } -- cgit