You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we only fetch the commit hash, and only for upload. We also need it for formatting reports, where we need the commit message as well for readability.
replace latestHash function with getLatestCommit which returns other metadata as well as an object
sha
message
author
date
call getLatestCommit function before creating markdown report, pass as parameter to reportToMd function
for collect: if commit not found (e.g. not run in Git repo), log warning but don't exit - report.md will display commit is unknown
for upload: if commit not found, throw an error - we can't upload correctly without it
Needed for:
Currently, we only fetch the commit hash, and only for upload. We also need it for formatting reports, where we need the commit message as well for readability.
latestHashfunction withgetLatestCommitwhich returns other metadata as well as an objectgetLatestCommitfunction before creating markdown report, pass as parameter toreportToMdfunctioncollect: if commit not found (e.g. not run in Git repo), log warning but don't exit -report.mdwill display commit is unknownupload: if commit not found, throw an error - we can't upload correctly without it