Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Nov 28, 2022
1 parent 20dd7ba commit 50eb31e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ontobot_change_agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ def process_issue(input: str, repo: str, label: str, number: int, state: str, ou
formatted_body += _list_to_markdown(KGCL_COMMANDS)
formatted_body += "</br>Fixes #" + str(issue["number"])
# TODO: remove `set-output` when env var setting is confirmed.
with open(os.getenv("GITHUB_ENV"), "a") as env:
print(f"PR_BODY={formatted_body}", file=env)
print(f"PR_TITLE={issue[TITLE]}", file=env)
if os.getenv("GITHUB_ENV"):
with open(os.getenv("GITHUB_ENV"), "a") as env: # type: ignore
print(f"PR_BODY={formatted_body}", file=env)
print(f"PR_TITLE={issue[TITLE]}", file=env)

click.echo(
f"""
Expand Down

0 comments on commit 50eb31e

Please sign in to comment.