Skip to content

Commit

Permalink
pr_labeler: improve create_boilerplate_comment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Oct 18, 2023
1 parent e43d253 commit 5730ba9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hacking/pr_labeler/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ def create_boilerplate_comment(ctx: IssueOrPrCtx, name: str, **kwargs) -> None:
if comment.body.splitlines()[-1] == last:
log(ctx, name, "boilerplate was already commented")
return
log(ctx, "Templating", name, "boilerplate")
msg = f"Templating {name} boilerplate"
if kwargs:
msg += f" with {kwargs}"
log(ctx, msg)
create_comment(ctx, tmpl)


Expand Down

0 comments on commit 5730ba9

Please sign in to comment.