def get_pull_request_event_message(user_name, action, url, number=None, target_branch=None, base_branch=None, message=None, assignee=None, type='PR'):
    main_message = PULL_REQUEST_OR_ISSUE_MESSAGE_TEMPLATE.format(user_name=user_name, action=action, type=type, url=url, id=(' #{}'.format(number) if (number is not None) else ''))
    if assignee:
        main_message += PULL_REQUEST_OR_ISSUE_ASSIGNEE_INFO_TEMPLATE.format(assignee=assignee)
    if (target_branch and base_branch):
        main_message += PULL_REQUEST_BRANCH_INFO_TEMPLATE.format(target=target_branch, base=base_branch)
    if message:
        main_message += ('\n' + CONTENT_MESSAGE_TEMPLATE.format(message=message))
    return main_message.rstrip()
def get_pull_request_event_message(user_name, action, url, number=None, target_branch=None, base_branch=None, message=None, assignee=None, type='PR'):
    main_message = PULL_REQUEST_OR_ISSUE_MESSAGE_TEMPLATE.format(user_name=user_name, action=action, type=type, url=url, id=(' #{}'.format(number) if (number is not None) else ))
    if assignee:
        main_message += PULL_REQUEST_OR_ISSUE_ASSIGNEE_INFO_TEMPLATE.format(assignee=assignee)
    if (target_branch and base_branch):
        main_message += PULL_REQUEST_BRANCH_INFO_TEMPLATE.format(target=target_branch, base=base_branch)
    if message:
        main_message += ('\n' + CONTENT_MESSAGE_TEMPLATE.format(message=message))
    return main_message.rstrip()