Skip to content

Commit

Permalink
Merge pull request chaoss#1432 from chaoss/cntrb-endpoint-patch
Browse files Browse the repository at this point in the history
Patch api data to quickly grab full name and recent activity data from GitHub endpoints.
  • Loading branch information
sgoggins authored Aug 17, 2021
2 parents aa686ae + adafb7c commit 238559e
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 238559e

Please sign in to comment.