diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-22 00:13:47 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-23 17:18:04 +0200 |
commit | b27647c7a0dd95fdbbe4d22962129615fc5c9325 (patch) | |
tree | 285303bbb522f90266ac99cf7f5a196bbafd0843 /bridge/gitlab/import.go | |
parent | b18507836cd1716ba842e82eb8d42c82b8d62d71 (diff) | |
download | git-bug-b27647c7a0dd95fdbbe4d22962129615fc5c9325.tar.gz |
bridge/gitlab: Fix test project path
bridge/gitlab: update comments
Diffstat (limited to 'bridge/gitlab/import.go')
-rw-r--r-- | bridge/gitlab/import.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go index 6869a103..b2db13d0 100644 --- a/bridge/gitlab/import.go +++ b/bridge/gitlab/import.go @@ -14,6 +14,7 @@ import ( "github.com/MichaelMure/git-bug/util/text" ) +// gitlabImporter implement the Importer interface type gitlabImporter struct { conf core.Configuration @@ -32,6 +33,8 @@ func (gi *gitlabImporter) Init(conf core.Configuration) error { return nil } +// ImportAll iterate over all the configured repository issues (notes) and ensure the creation +// of the missing issues / comments / label events / title changes ... func (gi *gitlabImporter) ImportAll(repo *cache.RepoCache, since time.Time) error { gi.iterator = NewIterator(gi.conf[keyProjectID], gi.conf[keyToken], since) @@ -90,6 +93,7 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue return nil, err } + // if bug was never imported if err == bug.ErrBugNotExist { cleanText, err := text.Cleanup(string(issue.Description)) if err != nil { |