default authors: add "and contributors" (#153)

This commit is contained in:
Stefan Karpinski 2020-04-16 15:39:02 -04:00 committed by GitHub
parent b603011ea9
commit f276d58127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -13,9 +13,10 @@ default_plugins() = [
function default_authors()
name = LibGit2.getconfig("user.name", "")
isempty(name) && return ""
isempty(name) && return "contributors"
email = LibGit2.getconfig("user.email", "")
return isempty(email) ? name : "$name <$email>"
authors = isempty(email) ? name : "$name <$email>"
return "$authors and contributors"
end
"""