From 8773929f963b847841fac0d3c42d6278de69b79c Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 8 Feb 2020 22:04:25 +0100 Subject: github: make sure to have a name --- bridge/github/import.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge') 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, -- cgit