From 458f4da10179f0a0ff757910d99b38538487cee2 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Fri, 17 May 2019 16:33:16 +0200 Subject: fix imported bugs count --- bridge/github/import.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bridge/github') 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 { -- cgit