def getchangelog():
'''
Opens up EDITOR, and allows user to enter changelog.
Splits by the boilerplate text and returns user input
'''
branch = git.branch() or '<unavailable>'
user = git.username() or '<unavailable>'
data = click.edit(
text=RELEASE_LOG_TEXT.format(branch, user),
require_save=True
)
try:
serialized = data.split(RELEASE_LOG_TEXT.format(branch, user))
return serialized[0]
except Exception: # pylint: disable=broad-except
return ''
评论列表
文章目录