aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-17 16:33:16 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-23 14:21:44 +0200
commit458f4da10179f0a0ff757910d99b38538487cee2 (patch)
tree2927618eb831dcdbe3eb197595f7098420d9a61b /bridge
parent2a9705612478bfae4515616d9649ddfb140b54cf (diff)
downloadgit-bug-458f4da10179f0a0ff757910d99b38538487cee2.tar.gz
fix imported bugs count
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/import.go6
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 {