diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-08 22:04:25 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-08 22:04:25 +0100 |
commit | 8773929f963b847841fac0d3c42d6278de69b79c (patch) | |
tree | 5f1b0f49179ef811c9dbb351b37d75965f423b0b /bridge | |
parent | 2e7ac569ad3146e5fa22907d8a4e63d2a524533b (diff) | |
download | git-bug-8773929f963b847841fac0d3c42d6278de69b79c.tar.gz |
github: make sure to have a name
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/github/import.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index 6a4c0110..ea0ccba3 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -534,6 +534,11 @@ func (gi *githubImporter) ensurePerson(repo *cache.RepoCache, actor *actor) (*ca case "Bot": } + // Name is not necessarily set, fallback to login as a name is required in the identity + if name == "" { + name = string(actor.Login) + } + i, err = repo.NewIdentityRaw( name, email, |