github: make sure to have a name

This commit is contained in:
Michael Muré 2020-02-08 22:04:25 +01:00
parent 2e7ac569ad
commit 8773929f96
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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,