Skip to content

Commit

Permalink
Show author email in history (#155)
Browse files Browse the repository at this point in the history
* return full hexsha everywhere except for tables in CLI

* add author email to output

* fix tests

* fix tests

* add author_email to history
  • Loading branch information
aguschin authored May 9, 2022
1 parent 7024ae7 commit e325046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gto/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def format_hexsha(hexsha):
event="commit",
commit=format_hexsha(v.commit_hexsha),
author=reg.repo.commit(v.commit_hexsha).author.name,
author_email=reg.repo.commit(v.commit_hexsha).author.email,
)
for o in artifacts.values()
for v in o.get_versions(include_non_explicit=True, include_discovered=True)
Expand All @@ -318,6 +319,7 @@ def format_hexsha(hexsha):
version=format_hexsha(v.name),
commit=format_hexsha(v.commit_hexsha),
author=v.author,
author_email=v.author_email,
# enrichments=[e.source for e in v.enrichments],
)
for o in artifacts.values()
Expand All @@ -333,6 +335,7 @@ def format_hexsha(hexsha):
stage=l.stage,
commit=format_hexsha(l.commit_hexsha),
author=l.author,
author_email=l.author_email,
)
for o in artifacts.values()
for l in o.stages
Expand Down

0 comments on commit e325046

Please sign in to comment.