##// END OF EJS Templates
pull requests: make title optional - generate one automatically
Mads Kiilerich -
r4058:a2218bdb default
parent child Browse files
Show More
@@ -335,6 +335,8 b' class PullrequestsController(BaseRepoCon'
335 reviewers = _form['review_members']
335 reviewers = _form['review_members']
336
336
337 title = _form['pullrequest_title']
337 title = _form['pullrequest_title']
338 if not title:
339 title = '%s#%s to %s' % (org_repo, org_ref.split(':', 2)[1], other_repo)
338 description = _form['pullrequest_desc']
340 description = _form['pullrequest_desc']
339 try:
341 try:
340 pull_request = PullRequestModel().create(
342 pull_request = PullRequestModel().create(
@@ -415,7 +415,7 b' def PullRequestForm(repo_id):'
415 v.UniqueList(not_empty=True))
415 v.UniqueList(not_empty=True))
416 review_members = v.UniqueList(not_empty=True)
416 review_members = v.UniqueList(not_empty=True)
417
417
418 pullrequest_title = v.UnicodeString(strip=True, required=True, min=3)
418 pullrequest_title = v.UnicodeString(strip=True, required=True)
419 pullrequest_desc = v.UnicodeString(strip=True, required=False)
419 pullrequest_desc = v.UnicodeString(strip=True, required=False)
420
420
421 ancestor_rev = v.UnicodeString(strip=True, required=True)
421 ancestor_rev = v.UnicodeString(strip=True, required=True)
General Comments 0
You need to be logged in to leave comments. Login now