gitea/routers
zeripath e4e411821d
Abort merge if head has been updated before pressing merge ()
* Abort merge if head has been updated before pressing merge

It is possible that a PR head may be pushed to between the merge page being shown
and the merge button being pressed. Pass the current expected head in as a parameter
and cancel the merge if it has changed.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* adjust swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix test

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
api/v1 Abort merge if head has been updated before pressing merge ()
common Update chi/middleware to chi/v5/middleware ()
install Refactor HTTP request context ()
private Refactor HTTP request context ()
utils A better go code formatter, and now `make fmt` can run in Windows ()
web Abort merge if head has been updated before pressing merge ()
init.go Move keys to models/asymkey ()