You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
Giteabot fbf29f29b5
Modernize merge button (#28140) (#28786)
Backport #28140 by @earl-warren

- Make use of the `form-fetch-action` for the merge button, which will
automatically prevent the action from happening multiple times and show
a nice loading indicator as user feedback while the merge request is
being processed by the server.
- Adjust the merge PR code to JSON response as this is required for the
`form-fetch-action` functionality.
- Resolves https://codeberg.org/forgejo/forgejo/issues/774
- Likely resolves the cause of
https://codeberg.org/forgejo/forgejo/issues/1688#issuecomment-1313044

(cherry picked from commit 4ec64c19507caefff7ddaad722b1b5792b97cc5a)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
1 year ago
..
actions Only check online runner when detecting matching runners in workflows (#28286) (#28512) 1 year ago
setting Fix schedule tasks bugs (#28691) (#28780) 1 year ago
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
blame.go Use information from previous blame parts (#28572) (#28577) 1 year ago
branch.go Also sync DB branches on push if necessary (#28361) (#28403) 1 year ago
cherry_pick.go Sync branches into databases (#22743) 2 years ago
commit.go More `db.DefaultContext` refactor (#27265) (#27347) 1 year ago
compare.go Assign pull request to project during creation (#28227) (#28775) 1 year ago
download.go Less naked returns (#25713) 2 years ago
editor.go Revert "Fix EOL handling in web editor" (#28101) (#28172) 1 year ago
editor_test.go Move web/api context related testing function into a separate package (#26859) 2 years ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
githttp.go Fix http protocol auth (#27875) (#27876) 1 year ago
githttp_test.go Fix http protocol auth (#27875) (#27876) 1 year ago
helper.go Improve tree not found page (#26570) (#27346) 1 year ago
helper_test.go Make web context initialize correctly for different cases (#26726) 2 years ago
issue.go Fix issue dependencies (#27736) (#28776) 1 year ago
issue_content_history.go Fix missing check (#28406) (#28411) 1 year ago
issue_dependency.go Add context parameter to some database functions (#26055) 2 years ago
issue_label.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_label_test.go Move web/api context related testing function into a separate package (#26859) 2 years ago
issue_lock.go Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380) 2 years ago
issue_pin.go Fix missing check (#28406) (#28411) 1 year ago
issue_stopwatch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Add context parameter to some database functions (#26055) 2 years ago
issue_watch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
middlewares.go Fix viewing wiki commit on empty repo (#28040) (#28044) 1 year ago
migrate.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
milestone.go Fix `link-action` redirect network error (#27734) (#27749) 1 year ago
packages.go Fix the display of org level badges (#26504) 1 year ago
patch.go Sync branches into databases (#22743) 2 years ago
projects.go Fix comment permissions (#28213) (#28216) 1 year ago
projects_test.go Move web/api context related testing function into a separate package (#26859) 2 years ago
pull.go Modernize merge button (#28140) (#28786) 1 year ago
pull_review.go More `db.DefaultContext` refactor (#27265) (#27347) 1 year ago
release.go Fix comment permissions (#28213) (#28216) 1 year ago
release_test.go Move web/api context related testing function into a separate package (#26859) 2 years ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Another round of `db.DefaultContext` refactor (#27103) (#27262) 1 year ago
search.go Refactor indexer (#25174) 2 years ago
topic.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go Add option to disable ambiguous unicode characters detection (#28454) (#28499) 1 year ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Move notification interface to services layer (#26915) 1 year ago
wiki_test.go Move web/api context related testing function into a separate package (#26859) 2 years ago