Skip to content

Commit

Permalink
Include commit_message body in pr_body
Browse files Browse the repository at this point in the history
Improve visibility of additional details from the `commit_message` by
including in the migrator PR's body message.
  • Loading branch information
jakirkham authored Jun 14, 2023
1 parent c9b2428 commit 40e070d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conda_forge_tick/migrators/migration_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,14 @@ def pr_body(self, feedstock_ctx: "FeedstockContext") -> str:
)
)

commit_body = " ".join([e for e in self.commit_message(feedstock_ctx).splitlines()[1:] if e])
if commit_body:
additional_body += (
"<hr>"
"Here are some more details about this specific migrator:\n\n"
"{commit_body}\n\n"
).format(commit_body=commit_body)

children = "\n".join(
[" - %s" % ch for ch in self.downstream_children(feedstock_ctx)],
)
Expand Down

0 comments on commit 40e070d

Please sign in to comment.