@@ -226,14 +226,35 @@ def generate_version_pandas_tables(repo, data_root_dir):
226226 # Embed author uuid
227227 users_ids = Utility .get_users_ids (data_root_dir )
228228 pd_commits ['author' ] = ""
229+ pd_commits ['committer' ] = ""
229230 commiter_list = pd_commits .committer_name .unique ()
230231 for commiter_name in commiter_list :
231- commit_sha = pd_commits [pd_commits .committer_name == commiter_name ].iloc [0 ].commit_sha
232- user_id = Utility .extract_committer_data_from_commit (repo , commit_sha ,
232+ if commiter_name == "GitHub" :
233+ pd_selected_commits = pd_commits [pd_commits .committer_name == commiter_name ]
234+ for index , row in pd_selected_commits .iterrows ():
235+ author_id = Utility .extract_author_data_from_commit (repo , row .commit_sha ,
233236 users_ids , data_root_dir )
234- pd_commits .loc [pd_commits .committer_name == commiter_name , 'author' ] = user_id
237+ committer_id = Utility .extract_committer_data_from_commit (repo , row .commit_sha ,
238+ users_ids , data_root_dir )
239+ pd_commits .loc [pd_commits .commit_sha == row .commit_sha , 'author' ] = author_id
240+ pd_commits .loc [pd_commits .commit_sha == row .commit_sha , 'committer' ] = committer_id
241+ else :
242+ commit_sha = pd_commits [pd_commits .committer_name == commiter_name ].iloc [0 ].commit_sha
243+ author_id = Utility .extract_author_data_from_commit (repo , commit_sha ,
244+ users_ids , data_root_dir )
245+ committer_id = Utility .extract_committer_data_from_commit (repo , commit_sha ,
246+ users_ids , data_root_dir )
247+ pd_commits .loc [pd_commits .committer_name == commiter_name , 'author' ] = author_id
248+ pd_commits .loc [pd_commits .committer_name == commiter_name , 'committer' ] = committer_id
235249 pd_commits .drop (['committer_name' ], axis = 1 , inplace = True )
236250
251+ # Extract Tags
252+ pd_commits ['tag' ] = ""
253+ tags = repo .get_tags ()
254+ for tag in tags :
255+ pd_commits .loc [pd_commits .commit_sha == tag .commit .sha , 'tag' ] = tag .name
256+
257+
237258 # Extract branch names
238259 branch_entries = [x .split (',' ) for x in pd_commits .branches .values ]
239260 branch_list = [item for sublist in branch_entries for item in sublist ]
0 commit comments