Skip to content

Commit d5458d6

Browse files
authored
Merge pull request #92 from INCATools/issue-90
Changed automated PR title: prefixed with "Applying changes for: {issue title}"
2 parents 3e1d792 + b320327 commit d5458d6

File tree

1 file changed

+3
-2
lines changed
  • src/ontobot_change_agent

1 file changed

+3
-2
lines changed

src/ontobot_change_agent/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,18 @@ def process_issue(
245245

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

249250
if os.getenv("GITHUB_ENV"):
250251
with open(os.getenv("GITHUB_ENV"), "a") as env: # type: ignore
251252
print(f"PR_BODY={formatted_body}", file=env)
252-
print(f"PR_TITLE={issue[TITLE]}", file=env)
253+
print(f"PR_TITLE={pr_title}", file=env)
253254
print(f"ISSUE_CREATOR={issue[USER]}", file=env)
254255

255256
click.echo(
256257
f"""
257258
PR_BODY={formatted_body}
258-
PR_TITLE={issue[TITLE]}
259+
PR_TITLE={pr_title}
259260
ISSUE_CREATOR={issue[USER]}
260261
"""
261262
)

0 commit comments

Comments
 (0)