diff options
author | Michael Muré <batolettre@gmail.com> | 2020-01-21 18:49:33 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-08 17:18:30 +0100 |
commit | 8da522d97af3dcaca8a8424e3541705c69779d6f (patch) | |
tree | b67af18d752d3821bcbf62e362f699477eed9245 /bridge/github | |
parent | b950c2580dfbf7672ee9e5e1e3f5b45c8cbc2788 (diff) | |
download | git-bug-8da522d97af3dcaca8a8424e3541705c69779d6f.tar.gz |
wip
Diffstat (limited to 'bridge/github')
-rw-r--r-- | bridge/github/config.go | 6 |
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) |