def METHOD_NAME(pull_number):
    commits_url = (
        'https://api.github.com/repos/akvo/akvo-rsr/pulls/{pull_number}/commits'
        '?per_page=100&page={page}'
    )
    commits = []
    page = 1
    while True:
        url = commits_url.format(pull_number=pull_number, page=page)
        response = requests.get(url, headers=HEADERS)
        page_commits = response.json()
        if not page_commits:
            break
        page += 1
        commits.extend(page_commits)
    return commits