Skip to content

Commit

Permalink
Patch api endpoints for contributer data in order to grab last_used t…
Browse files Browse the repository at this point in the history
…imestamp and full name

Signed-off-by: Isaac Milarsky <[email protected]>
  • Loading branch information
IsaacMilarky committed Aug 17, 2021
1 parent aa686ae commit adafb7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workers/worker_git_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ def enrich_cntrb_id(
"gh_received_events_url": contributor['received_events_url'],
"gh_type": contributor['type'],
"gh_site_admin": contributor['site_admin'],
"cntrb_last_used" : None if 'updated_at' not in contributor else contributor['updated_at'],
"cntrb_full_name" : None if 'name' not in contributor else contributor['name'],
"tool_source": self.tool_source,
"tool_version": self.tool_version,
"data_source": self.data_source
Expand Down Expand Up @@ -646,6 +648,8 @@ def query_github_contributors(self, entry_info, repo_id):
"gh_received_events_url": contributor['received_events_url'],
"gh_type": contributor['type'],
"gh_site_admin": contributor['site_admin'],
"cntrb_last_used" : None if 'updated_at' not in contributor else contributor['updated_at'],
"cntrb_full_name" : None if 'name' not in contributor else contributor['name'],
"tool_source": self.tool_source,
"tool_version": self.tool_version,
"data_source": self.data_source
Expand Down

0 comments on commit adafb7c

Please sign in to comment.