diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-23 00:52:30 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-24 21:33:15 +0200 |
commit | fc09f2a492348f3b6013308697cbc86e15e8ab47 (patch) | |
tree | b20f4b76d5fa612fa2f44a3ac791d5c1b50aa90b /bridge/github/export.go | |
parent | 12cc74e22b35d08d2d342a1b445d967e3e09c1f6 (diff) | |
download | git-bug-fc09f2a492348f3b6013308697cbc86e15e8ab47.tar.gz |
[bridge/github] exporter: Add test cases
correct delete repo
improve tests
set user identity
Diffstat (limited to 'bridge/github/export.go')
-rw-r--r-- | bridge/github/export.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/github/export.go b/bridge/github/export.go index 393146d6..947d5aca 100644 --- a/bridge/github/export.go +++ b/bridge/github/export.go @@ -35,7 +35,7 @@ type githubExporter struct { // cache identities clients identityClient map[string]*githubv4.Client - // map identity with their tokens + // map identities with their tokens identityToken map[string]string // github repository ID @@ -201,6 +201,9 @@ func (ge *githubExporter) exportBug(b *cache.BugCache, since time.Time) error { return errors.Wrap(err, "exporting github issue") } + // incr exported bugs + ge.exportedBugs++ + hash, err := createOp.Hash() if err != nil { return errors.Wrap(err, "comment hash") |