forgejo/routers/web/repo
zeripath fd15fd4c67
Handle too long PR titles correctly (#16517)
The CompareAndPullRequestPost handler for POST to /compare
incorrectly handles returning errors to the user. For a start
it does not set the necessary markers to switch SimpleMDE
but it also does not immediately return to the form.

This PR fixes this by setting the appropriate values, fixing
the templates and preventing the suggestion of a too long
title.

Fix #16507

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-07-25 03:59:27 +01:00
..
activity.go
attachment.go
blame.go Link to previous blames in file blame page (#16259) 2021-06-28 01:13:20 +02:00
branch.go
commit.go
compare.go Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
download.go
editor.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
editor_test.go
http.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
http_test.go
issue.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects.go
projects_test.go
pull.go Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
pull_review.go
release.go
release_test.go
repo.go
search.go
setting.go Add checkbox to delete pull branch after successful merge (#16049) 2021-07-13 01:26:25 +02:00
setting_protected_branch.go
settings_test.go
tag.go
topic.go
view.go Fix external renderer (#16401) 2021-07-12 17:13:59 -04:00
webhook.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
wiki.go
wiki_test.go Add TestPrepareWikiFileName (#16487) 2021-07-20 15:16:20 +02:00