Skip to content

Commit

Permalink
Use markdown syntax for links
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Moy committed Jul 19, 2023
1 parent 1434aa8 commit 1c2c229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iambic/plugins/v0_1_0/github/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def format_proposed_changes(changes: dict) -> str:
{plan}
```
<a href="{run_url}">Run</a>
[Run]({run_url})
"""


def ensure_body_length_fits_github_spec(body: str, blob_html_url: str = None) -> str:
if len(body) > BODY_MAX_LENGTH:
body = TRUNCATED_WARNING + f"""<a href="{blob_html_url}">Run</a>"""
body = TRUNCATED_WARNING + f"""[Run]({blob_html_url})"""
return body


Expand Down

0 comments on commit 1c2c229

Please sign in to comment.