in bugbounty_gpt/handlers/submission_handler.py [0:0]
def _prepare_comment_data(self, comment_body, visibility_scope='everyone'):
"""
Prepares data to create a comment.
:param comment_body: Text of the comment.
:param visibility_scope: Visibility scope of the comment. Default is 'everyone'.
:return: Dictionary containing the required data.
"""
return {
"data": {
"type": "comment",
"attributes": {
"body": comment_body,
"visibility_scope": visibility_scope
},
"relationships": {
"submission": {
"data": {
"id": self.submission_id,
"type": "submission"
}
}
}
}
}