aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go
index 30e28d0d..40653afa 100644
--- a/bridge/github/config.go
+++ b/bridge/github/config.go
@@ -149,7 +149,6 @@ func (g *Github) Configure(repo *cache.RepoCache, params core.BridgeParams) (cor
}
// tag the default user with the github login, if any
- // if not,
user, err := repo.GetUserIdentity()
if err == identity.ErrNoIdentitySet {
return nil
@@ -158,7 +157,10 @@ func (g *Github) Configure(repo *cache.RepoCache, params core.BridgeParams) (cor
return err
}
- repo.GetUserIdentity()
+ userLogin, ok := user.ImmutableMetadata()[metaKeyGithubLogin]
+ if !ok {
+ user.SetMetadata()
+ }
}(login)