diff --git a/pagure/templates/pull_request_title.html b/pagure/templates/pull_request_title.html
index 19c168f..c7fbd6d 100644
--- a/pagure/templates/pull_request_title.html
+++ b/pagure/templates/pull_request_title.html
@@ -25,7 +25,12 @@
}}" method="post">
- {{ render_bootstrap_field(form.title, field_description="the new title of your pull-request") }}
+ {{ render_bootstrap_field(
+ form.title,
+ field_description="the new title of your pull-request") }}
+ {{ render_bootstrap_field(
+ form.initial_comment,
+ field_description="description of your pull-request") }}
diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py
index 96595f0..3b2c9d0 100644
--- a/pagure/ui/fork.py
+++ b/pagure/ui/fork.py
@@ -394,7 +394,8 @@ def request_pull_edit(repo, requestid, username=None):
form = pagure.forms.RequestPullForm()
if form.validate_on_submit():
- request.title = form.title.data
+ request.title = form.title.data.strip()
+ request.initial_comment = form.initial_comment.data.strip()
SESSION.add(request)
try:
SESSION.commit()
@@ -410,6 +411,7 @@ def request_pull_edit(repo, requestid, username=None):
repo=repo.name, requestid=requestid))
elif flask.request.method == 'GET':
form.title.data = request.title
+ form.initial_comment.data = request.initial_comment
return flask.render_template(
'pull_request_title.html',