Skip to content

Commit

Permalink
Merge pull request #3235 from regro/replace-text
Browse files Browse the repository at this point in the history
fix: make spacing nice on PR text for replacements
  • Loading branch information
beckermr authored Nov 28, 2024
2 parents 8b0b79d + 4464dcc commit 0b04c8a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions conda_forge_tick/migrators/replacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,14 @@ def migrate(
def pr_body(self, feedstock_ctx: ClonedFeedstockContext) -> str:
body = super().pr_body(feedstock_ctx)
body = body.format(
"I noticed that this recipe depends on `%s` instead of \n"
"`%s`. %s \n"
"This PR makes this change."
"\n"
"Notes and instructions for merging this PR:\n"
"1. Make sure that the recipe can indeed only depend on `%s`. \n"
"2. Please merge the PR only after the tests have passed. \n"
"3. Feel free to push to the bot's branch to update this PR if "
"needed. \n" % (self.old_pkg, self.new_pkg, self.rationale, self.new_pkg),
"""\
I noticed that this recipe depends on `{}` instead of `{}`. {} Thus I made this PR.
Notes and instructions for merging this PR:
1. Make sure that the recipe can indeed only depend on `{}`.
2. Please merge the PR only after the tests have passed.
3. Feel free to push to the bot's branch to update this PR if \
needed.""".format(self.old_pkg, self.new_pkg, self.rationale, self.new_pkg),
)
return body

Expand Down

0 comments on commit 0b04c8a

Please sign in to comment.