def format_changes(github_config, owner, repo, prs, markdown=False):
    """Format the list of prs in either text or markdown"""
    lines = []
    for pr in prs:
        number = "#{number}".format(number=pr.number)
        if markdown:
            link = "{github_url}/{owner}/{repo}/pull/{number}".format(
                github_url=github_config.base_url,
                owner=owner,
                repo=repo,
                number=pr.number,
            )
            number = "[{number}]({link})".format(number=number, link=link)

        lines.append(
            "- {title} {number}".format(title=pr.title, number=number)
        )

    return lines