@@ -36,11 +36,11 @@ class IssueData:
3636
3737@dataclass (kw_only = True , frozen = True )
3838class IssueDataWithComment (IssueData ):
39- body : str = ''
40- created_at : str = ''
41- author_name : str = ''
42- author_login : str = ''
43- author_email : str = ''
39+ comment_body : str = ''
40+ comment_created_at : str = ''
41+ comment_author_name : str = ''
42+ comment_author_login : str = ''
43+ comment_author_email : str = ''
4444
4545
4646def get_connected_pulls (issue_number , repo_owner , repo_name , token ):
@@ -172,11 +172,11 @@ def log_issue_and_comments(csv_name, issue_data: IssueData, comments):
172172 for comment in comments :
173173 comment_data = IssueDataWithComment (
174174 ** asdict (issue_data ),
175- body = comment .body ,
176- created_at = str (comment .created_at ),
177- author_name = comment .author .username ,
178- author_login = comment .author .login ,
179- author_email = comment .author .email ,
175+ comment_body = comment .body ,
176+ comment_created_at = str (comment .created_at ),
177+ comment_author_name = comment .author .username ,
178+ comment_author_login = comment .author .login ,
179+ comment_author_email = comment .author .email ,
180180 )
181181 comment_data = asdict (comment_data )
182182
0 commit comments