diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-07 02:53:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 02:53:21 +0200 |
commit | d69dcce806d280ddbd6a4fb17700153bc03da90b (patch) | |
tree | da07a7beadc77b3fe5e99f09bd38d919566a0191 /bridge/github/import.go | |
parent | a9629dbad15f0e80ea244eb81abda4ddc08f7a0e (diff) | |
parent | 1c2ad95960c09d029e6306ac5a5ea76c58e8b5c9 (diff) | |
download | git-bug-d69dcce806d280ddbd6a4fb17700153bc03da90b.tar.gz |
Merge pull request #153 from A-Hilaly/bridge-configuration
[Breaking] Bridge configuration enhancements
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index 2b9e5561..edb97c4f 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -5,13 +5,14 @@ import ( "fmt" "time" + "github.com/shurcooL/githubv4" + "github.com/MichaelMure/git-bug/bridge/core" "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/util/git" "github.com/MichaelMure/git-bug/util/text" - "github.com/shurcooL/githubv4" ) const ( @@ -42,7 +43,7 @@ func (gi *githubImporter) Init(conf core.Configuration) error { // ImportAll iterate over all the configured repository issues and ensure the creation of the // missing issues / timeline items / edits / label events ... func (gi *githubImporter) ImportAll(repo *cache.RepoCache, since time.Time) error { - gi.iterator = NewIterator(gi.conf[keyUser], gi.conf[keyProject], gi.conf[keyToken], since) + gi.iterator = NewIterator(gi.conf[keyOwner], gi.conf[keyProject], gi.conf[keyToken], since) // Loop over all matching issues for gi.iterator.NextIssue() { |