Skip to content

Commit

Permalink
Merge pull request #92 from INCATools/issue-90
Browse files Browse the repository at this point in the history
Changed automated PR title: prefixed with "Applying changes for: {issue title}"
  • Loading branch information
hrshdhgd authored Jun 26, 2024
2 parents 3e1d792 + b320327 commit d5458d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ontobot_change_agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,17 +245,18 @@ def process_issue(

formatted_body += _convert_to_markdown(KGCL_COMMANDS)
formatted_body += "</br>Fixes #" + str(issue["number"])
pr_title = f"Applying changes for: {issue['title']}"

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)
print(f"PR_TITLE={pr_title}", file=env)
print(f"ISSUE_CREATOR={issue[USER]}", file=env)

click.echo(
f"""
PR_BODY={formatted_body}
PR_TITLE={issue[TITLE]}
PR_TITLE={pr_title}
ISSUE_CREATOR={issue[USER]}
"""
)
Expand Down

0 comments on commit d5458d6

Please sign in to comment.