Skip to content

Commit

Permalink
cherry_picker: Prefix the pull request with backport branch (GH-195)
Browse files Browse the repository at this point in the history
Prefix the Pull Request title with backport branch if it wasn't in the commit message.

Part two for fixing python/miss-islington#38
  • Loading branch information
Mariatta authored Oct 19, 2017
1 parent 9bb15e5 commit 64218b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cherry_picker/cherry_picker/cherry_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def create_gh_pr(self, base_branch, head_branch, *,
request_headers = sansio.create_headers(
self.username, oauth_token=gh_auth)
title, body = normalize_commit_message(commit_message)
if not self.prefix_commit:
title = f"[{base_branch}] title"
data = {
"title": title,
"body": body,
Expand Down

0 comments on commit 64218b9

Please sign in to comment.