aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/export.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-24 23:54:23 +0100
committerGitHub <noreply@github.com>2019-11-24 23:54:23 +0100
commit44f648a931b43d707d37cb469fead5e21a615e04 (patch)
tree356bbe10b81a1ed06ded54a5570027fda51fead6 /bridge/github/export.go
parent6345895a3d9a055927f1d4b78f254a55c1d271b6 (diff)
parent06abb5a5312dfaa1edac58cced94691e477c2ed7 (diff)
downloadgit-bug-44f648a931b43d707d37cb469fead5e21a615e04.tar.gz
Merge pull request #260 from MichaelMure/bridge
Support bridge configuration with global tokens
Diffstat (limited to 'bridge/github/export.go')
-rw-r--r--bridge/github/export.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/github/export.go b/bridge/github/export.go
index 2fb92636..8d515802 100644
--- a/bridge/github/export.go
+++ b/bridge/github/export.go
@@ -87,14 +87,14 @@ func (ge *githubExporter) ExportAll(ctx context.Context, repo *cache.RepoCache,
return nil, err
}
- ge.identityToken[user.Id()] = ge.conf[keyToken]
+ ge.identityToken[user.Id()] = ge.conf[core.ConfigKeyToken]
// get repository node id
ge.repositoryID, err = getRepositoryNodeID(
ctx,
ge.conf[keyOwner],
ge.conf[keyProject],
- ge.conf[keyToken],
+ ge.conf[core.ConfigKeyToken],
)
if err != nil {
@@ -512,7 +512,7 @@ func (ge *githubExporter) createGithubLabel(ctx context.Context, label, color st
req = req.WithContext(ctx)
// need the token for private repositories
- req.Header.Set("Authorization", fmt.Sprintf("token %s", ge.conf[keyToken]))
+ req.Header.Set("Authorization", fmt.Sprintf("token %s", ge.conf[core.ConfigKeyToken]))
resp, err := client.Do(req)
if err != nil {