Add footer with release date and author
Closed this issue · 1 comments
mantoni commented
mantoni commented
This could work like this:
- Read
$GIT_AUTHOR_NAME
and if not present, skip theby ${name}
part and just show the date. - Read
$GIT_AUTHOR_EMAIL
and if not present, skip linking to the homepage. - Search github for the user email with
https://api.github.com/search/users?q=${encodeURIComponent(email)}&in=email
, skip linking to the homepage on failure orresponse.items.length !== 1
. - Link to homepage using
response.items[0].html_url
.
If the GIT_AUTHOR_*
values are not available, we could try to fall back to GIT_COMMITTER_*
instead.