diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-17 16:33:16 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-23 14:21:44 +0200 |
commit | 458f4da10179f0a0ff757910d99b38538487cee2 (patch) | |
tree | 2927618eb831dcdbe3eb197595f7098420d9a61b | |
parent | 2a9705612478bfae4515616d9649ddfb140b54cf (diff) | |
download | git-bug-458f4da10179f0a0ff757910d99b38538487cee2.tar.gz |
fix imported bugs count
-rw-r--r-- | bridge/github/import.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index da0ca2fe..ae3ca81d 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -51,8 +51,7 @@ func (gi *githubImporter) ImportAll(repo *cache.RepoCache, since time.Time) erro // Loop over all matching issues for gi.iterator.NextIssue() { issue := gi.iterator.IssueValue() - fmt.Printf("importing issue: %v %v\n", gi.importedIssues+1, issue.Title) - gi.importedIssues++ + fmt.Printf("importing issue: %v\n", issue.Title) // create issue b, err := gi.ensureIssue(repo, issue) @@ -124,6 +123,9 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline if err != nil { return nil, err } + + // importing a new bug + gi.importedIssues++ } } else { |