Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace with pull_request.web_url #199

Closed
github-actions bot opened this issue Jun 24, 2021 · 0 comments · Fixed by #192
Closed

replace with pull_request.web_url #199

github-actions bot opened this issue Jun 24, 2021 · 0 comments · Fixed by #192
Labels

Comments

@github-actions
Copy link

replace with pull_request.web_url

link = f"https://www.github.com/{org}/{repository}"

# TODO: replace with pull_request.web_url

    repository: str,
) -> Table:
    """Renders a list of pull requests as a table"""

    # if pull_requests:
    #     import pdb
    #     pdb.set_trace()
    #     link = pull_requests[0].web_url.split("/-/")[0]
    # else:
    #     link = ""

    link = ""
    show_diff = False

    # TODO: replace with pull_request.web_url
    # link = f"https://www.github.com/{org}/{repository}"

    table = Table(show_header=True, header_style="bold white")
    table.add_column("#", style="dim", width=5)
    table.add_column(
        f"[link={link}]{title}[/link]",
        width=75,
    )
    table.add_column("Labels", width=30)

58ecbaf9f1e101521b44bbefb0f6a5494ca35400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants