def METHOD_NAME(commit, issue, use_commit_message):
    if use_commit_message:
        message = commit['commit']['message']
        url = commit['html_url']
        link_text = commit['sha'][:7]
        entry = '- {} [{}]({})'.format(message, link_text, url)
        entry_type = release_note_type(issue) if issue else 'bugs'
    else:
        message = issue['title']
        link_text = '#{}'.format(issue['number'])
        url = issue['html_url']
        entry = '- {} [{}]({})'.format(message, link_text, url)
        entry_type = release_note_type(issue)
    return entry_type, entry