Show More
@@ -70,6 +70,11 b" def backport_pr(branch, num, project='ipython/ipython'):" | |||
|
70 | 70 | req = urlopen(patch_url) |
|
71 | 71 | patch = req.read() |
|
72 | 72 | |
|
73 | lines = description.splitlines() | |
|
74 | if len(lines) > 5: | |
|
75 | lines = lines[:5] + ['...'] | |
|
76 | description = '\n'.join(lines) | |
|
77 | ||
|
73 | 78 | msg = "Backport PR #%i: %s" % (num, title) + '\n\n' + description |
|
74 | 79 | check = Popen(['git', 'apply', '--check', '--verbose'], stdin=PIPE) |
|
75 | 80 | a,b = check.communicate(patch) |
General Comments 0
You need to be logged in to leave comments.
Login now