Skip to content

Commit

Permalink
Merge pull request #2897 from chaoss/dev-fixes
Browse files Browse the repository at this point in the history
Dev fixes for event collection
  • Loading branch information
sgoggins authored Aug 27, 2024
2 parents b778fcd + 2b5ce1a commit 9d65e24
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 133 deletions.
6 changes: 3 additions & 3 deletions augur/application/db/data_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,21 +283,21 @@ def extract_pr_review_message_ref_data(comment: dict, augur_pr_review_id, github
return pr_review_comment_message_ref


def extract_pr_event_data(event: dict, pr_id: int, platform_id: int, repo_id: int, tool_source: str, tool_version: str, data_source: str) -> dict:
def extract_pr_event_data(event: dict, pr_id: int, gh_src_id: int, platform_id: int, repo_id: int, tool_source: str, tool_version: str, data_source: str) -> dict:

pr_event = {
'pull_request_id': pr_id,
'cntrb_id': event["cntrb_id"] if "cntrb_id" in event else None,
'action': event['event'],
'action_commit_hash': None,
'created_at': event['created_at'],
'issue_event_src_id': int(event['issue']["id"]),
'issue_event_src_id': gh_src_id,
'node_id': event['node_id'],
'node_url': event['url'],
'tool_source': tool_source,
'tool_version': tool_version,
'data_source': data_source,
'pr_platform_event_id': int(event['issue']["id"]),
'pr_platform_event_id': gh_src_id,
'platform_id': platform_id,
'repo_id': repo_id
}
Expand Down
Loading

0 comments on commit 9d65e24

Please sign in to comment.