Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cherry_picker/cherry_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def continue_cherry_pick(self):

self.cleanup_branch(cherry_pick_branch)

click.echo("\nBackport PR:\n")
click.echo(updated_commit_message)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is this printing out the title, message body, or both? The previous line is ambiguous without context so I don't know what to expect to see in the eventual output.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prints out the title, prefixed with [X.Y], message body, and cherry picked from .. message

Example output when backporting PR python/cpython#879:

[3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879)                     
                                                                                                            
the original logic was just comparing the network address                                                   
but this is wrong because if the network address is equal then                                              
we need to compare the ip address for breaking the tie                                                      
                                                                                                            
add more ip_interface comparison tests.                                                                     
(cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)  

I recorded an asciicast: https://asciinema.org/a/123496

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


else:
click.echo(u"Currently in `master` branch. Will not continue. \U0001F61B")

Expand Down