aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-10 17:48:13 +0100
committeramine <hilalyamine@gmail.com>2019-11-19 19:16:16 +0100
commit8ffe2a9b03f5d489e12d2d4d2677bbe67a1b53d7 (patch)
tree165e7aeda2b17b992762fae34863108c345b4524 /bridge/core
parent57e23c8ada0a9d921a6b68187a76eb5c8b8a407d (diff)
downloadgit-bug-8ffe2a9b03f5d489e12d2d4d2677bbe67a1b53d7.tar.gz
bridge/launchpad: add missing metadata
bridge: use a specific key for origin metadata
Diffstat (limited to 'bridge/core')
-rw-r--r--bridge/core/bridge.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go
index ddf041f1..e90476eb 100644
--- a/bridge/core/bridge.go
+++ b/bridge/core/bridge.go
@@ -20,8 +20,8 @@ var ErrImportNotSupported = errors.New("import is not supported")
var ErrExportNotSupported = errors.New("export is not supported")
const (
- KeyTarget = "target"
- KeyOrigin = "origin"
+ ConfigKeyTarget = "target"
+ MetaKeyOrigin = "origin"
bridgeConfigKeyPrefix = "git-bug.bridge"
)
@@ -96,7 +96,7 @@ func LoadBridge(repo *cache.RepoCache, name string) (*Bridge, error) {
return nil, err
}
- target := conf[KeyTarget]
+ target := conf[ConfigKeyTarget]
bridge, err := NewBridge(repo, target, name)
if err != nil {
return nil, err