Skip to content

Commit

Permalink
processors/github_metadata: use git commit date instead of author date
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Nov 3, 2023
1 parent 4a4f2da commit c544199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/).

#### [v1.2.2](https://github.com/nodiscc/hecat/releases/tag/1.2.2) - UNERELASED

**Changed:**
- processors/github_metadata: use git commit date instead of author date

---------------------

#### [v1.2.1](https://github.com/nodiscc/hecat/releases/tag/1.2.1) - 2023-10-27

**Added:**
Expand Down
2 changes: 1 addition & 1 deletion hecat/processors/github_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_gh_metadata(step, github_url, g, errors):
project = re.sub('/$', '', project)
try:
gh_metadata = g.get_repo(project)
latest_commit_date = gh_metadata.get_commits()[0].commit.author.date
latest_commit_date = gh_metadata.get_commits()[0].commit.committer.date
except github.GithubException as github_error:
error_msg = '{} : {}'.format(github_url, github_error)
logging.error(error_msg)
Expand Down

0 comments on commit c544199

Please sign in to comment.