aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-23 21:36:42 +0200
committerGitHub <noreply@github.com>2019-06-23 21:36:42 +0200
commit54e95cf36f4e50d4175f78410f3dc504a7e34179 (patch)
tree356011d5d539d259a696fe00fe6edb174b7ec268 /bridge
parent5bae915b53ed2bb4f222db2fdc73852099b96fd2 (diff)
parent17cbe457d2d782bee914680b38fa101c9327b811 (diff)
downloadgit-bug-54e95cf36f4e50d4175f78410f3dc504a7e34179.tar.gz
Merge pull request #171 from MichaelMure/graphql-mutation-relay
Graphql mutation relay
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/import.go4
-rw-r--r--bridge/launchpad/import.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index edb97c4f..6cfd022e 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -106,7 +106,7 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline
}
// create bug
- b, err = repo.NewBugRaw(
+ b, _, err = repo.NewBugRaw(
author,
issue.CreatedAt.Unix(),
issue.Title,
@@ -140,7 +140,7 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline
// if the bug doesn't exist
if b == nil {
// we create the bug as soon as we have a legit first edition
- b, err = repo.NewBugRaw(
+ b, _, err = repo.NewBugRaw(
author,
issue.CreatedAt.Unix(),
issue.Title,
diff --git a/bridge/launchpad/import.go b/bridge/launchpad/import.go
index 177ff3fc..63101d9c 100644
--- a/bridge/launchpad/import.go
+++ b/bridge/launchpad/import.go
@@ -74,7 +74,7 @@ func (li *launchpadImporter) ImportAll(repo *cache.RepoCache, since time.Time) e
if err == bug.ErrBugNotExist {
createdAt, _ := time.Parse(time.RFC3339, lpBug.CreatedAt)
- b, err = repo.NewBugRaw(
+ b, _, err = repo.NewBugRaw(
owner,
createdAt.Unix(),
lpBug.Title,