##// END OF EJS Templates
truncate PR description in backported git msg to five lines...
MinRK -
Show More
@@ -70,6 +70,11 b" def backport_pr(branch, num, project='ipython/ipython'):"
70 req = urlopen(patch_url)
70 req = urlopen(patch_url)
71 patch = req.read()
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 msg = "Backport PR #%i: %s" % (num, title) + '\n\n' + description
78 msg = "Backport PR #%i: %s" % (num, title) + '\n\n' + description
74 check = Popen(['git', 'apply', '--check', '--verbose'], stdin=PIPE)
79 check = Popen(['git', 'apply', '--check', '--verbose'], stdin=PIPE)
75 a,b = check.communicate(patch)
80 a,b = check.communicate(patch)
General Comments 0
You need to be logged in to leave comments. Login now