def _write_commits_to_release_notes(self):
with open(self.release_file, '<STR_LIT:a>') as out:<EOL><INDENT>out.write("<STR_LIT>".format(self.tag))<EOL>for commit in self.commits:<EOL><INDENT>try:<EOL><INDENT>msg = commit[<NUM_LIT:1>]<EOL>if msg != "<STR_LIT>":<EOL><INDENT>out.write("<STR_LIT:->" + msg + "<STR_LIT:\n>")<EOL><DEDENT><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>
writes commits to the releasenotes file by appending to the end