def METHOD_NAME(pull_number):
    pull_request = get_pull_request(pull_number)
    assert pull_request['base']['ref'] == 'master', 'Pull request is not against master'
    pull_request_branch = pull_request['head']['ref']
    title = pull_request['title'].strip()
    print(title)
    commits = get_commits(pull_number)
    milestone = create_milestone(title)
    milestone_number = milestone['number']
    changes = []
    for commit in commits:
        if is_merge_commit(commit):
            continue
        issue = get_issue(commit)
        if issue is not None and issue['milestone'] is None:
            issue = assign_milestone(issue, milestone_number)
        changes.append((commit, issue, milestone_number))
    notes = make_release_notes(changes)
    print(notes)
    create_release(title, notes, pull_request_branch)