Repository navigation
🐛 Don't render None as the backport PR body - #58
Merged
Merged
Conversation
webknjaz
approved these changes
Jul 27, 2026
webknjaz
left a comment
Member
There was a problem hiding this comment.
Alright.. I suppose this is a good solution for now. I wasn't sure what to do with this case originally (whether to display some explanatory text or a hidden html comment for troubleshooting). Plus not having tests in the project doesn't make it a good environment for first time contributors. So I won't request additional work on top here. Thanks!
However, if you'd like to work on some test infra for this bot — more PRs are welcome.
Contributor
Author
|
Thanks for the review and merge! #57 is still open if it's useful, and if there's anything else here you'd like picked up, feel free to ping me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pull_request['body']isnullfor PRs submitted without a description, so the f-string interpolated the stringNoneinto the backport PR description.Live example from #49: aio-libs/aiohttp#11772 ends with
Now the original description is only appended when there is one. Output is unchanged for PRs that do have a body; the empty-string case also stops emitting a trailing blank block.
Fixes #49.