def find_closed_date_by_commit(self, issue):
if not issue.get('<STR_LIT>'):<EOL><INDENT>return<EOL><DEDENT>compare_string = "<STR_LIT>" if '<STR_LIT>' in issue else "<STR_LIT>"<EOL>issue['<STR_LIT>'].reverse()<EOL>found_date = False<EOL>for event in issue['<STR_LIT>']:<EOL><INDENT>if event["<STR_LIT>"] == compare_string:<EOL><INDENT>self.set_date_from_event(event, issue)<EOL>found_date = True<EOL>break<EOL><DEDENT><DEDENT>if not found_date:<EOL><INDENT>print("<STR_LIT>"<EOL>"<STR_LIT>".format(issue["<STR_LIT>"], issue["<STR_LIT:title>"]))<EOL><DEDENT>
Fill "actual_date" parameter of specified issue by closed date of
the commit, if it was closed by commit.

:param dict issue: issue to edit