aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/iterator.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-07 02:53:21 +0200
committerGitHub <noreply@github.com>2019-06-07 02:53:21 +0200
commitd69dcce806d280ddbd6a4fb17700153bc03da90b (patch)
treeda07a7beadc77b3fe5e99f09bd38d919566a0191 /bridge/github/iterator.go
parenta9629dbad15f0e80ea244eb81abda4ddc08f7a0e (diff)
parent1c2ad95960c09d029e6306ac5a5ea76c58e8b5c9 (diff)
downloadgit-bug-d69dcce806d280ddbd6a4fb17700153bc03da90b.tar.gz
Merge pull request #153 from A-Hilaly/bridge-configuration
[Breaking] Bridge configuration enhancements
Diffstat (limited to 'bridge/github/iterator.go')
-rw-r--r--bridge/github/iterator.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge/github/iterator.go b/bridge/github/iterator.go
index 5935276a..fcf72b8f 100644
--- a/bridge/github/iterator.go
+++ b/bridge/github/iterator.go
@@ -60,7 +60,7 @@ type iterator struct {
}
// NewIterator create and initalize a new iterator
-func NewIterator(user, project, token string, since time.Time) *iterator {
+func NewIterator(owner, project, token string, since time.Time) *iterator {
i := &iterator{
gc: buildClient(token),
since: since,
@@ -70,21 +70,21 @@ func NewIterator(user, project, token string, since time.Time) *iterator {
issueEdit: indexer{-1},
commentEdit: indexer{-1},
variables: map[string]interface{}{
- "owner": githubv4.String(user),
+ "owner": githubv4.String(owner),
"name": githubv4.String(project),
},
},
commentEdit: commentEditIterator{
index: -1,
variables: map[string]interface{}{
- "owner": githubv4.String(user),
+ "owner": githubv4.String(owner),
"name": githubv4.String(project),
},
},
issueEdit: issueEditIterator{
index: -1,
variables: map[string]interface{}{
- "owner": githubv4.String(user),
+ "owner": githubv4.String(owner),
"name": githubv4.String(project),
},
},