diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-21 23:25:23 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-24 21:29:57 +0200 |
commit | 07492fb72a4af565d607432c681143d77f102515 (patch) | |
tree | 9b0bcca038cb4ecb2f73f76525f62358bc9a4c99 /bridge/github/import.go | |
parent | 1d42814166f783766a1b81e926c93c21244289dc (diff) | |
download | git-bug-07492fb72a4af565d607432c681143d77f102515.tar.gz |
[bridge/github] importer: tag imported issues with origin metadata
[bridge/github] exporter: correct export signature and cache maps
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index 6cfd022e..d07f0499 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -16,6 +16,7 @@ import ( ) const ( + keyOrigin = "origin" keyGithubId = "github-id" keyGithubUrl = "github-url" keyGithubLogin = "github-login" @@ -113,6 +114,7 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline cleanText, nil, map[string]string{ + keyOrigin: target, keyGithubId: parseId(issue.Id), keyGithubUrl: issue.Url.String(), }) @@ -147,6 +149,7 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline cleanText, nil, map[string]string{ + keyOrigin: target, keyGithubId: parseId(issue.Id), keyGithubUrl: issue.Url.String(), }, |