Antoine GIRARD
38e799779f
api: fix multiple bugs with statuses endpoints ( #7785 ) ( #7807 )
...
* fix commit statuses api url
* search refs before passing sha
* adjust tests
* directly search tags and branches names + remove un-needed check in NewCommitStatus
* fix comment
* de-duplicate code
* test: use relative setting.AppURL
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* remove return
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-09 16:18:46 +03:00
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
2019-05-11 18:21:34 +08:00
B-OnTheGo
e47df0b301
Enforce token on api routes [fixed critical security issue #4357 ] ( #4840 )
2018-09-10 12:15:52 -04:00
Ethan Koenig
513375c429
Make URL scheme unambiguous ( #2408 )
...
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
2017-10-30 10:04:25 +08:00
Ethan Koenig
f1adaef458
Less verbose integration tests ( #2123 )
...
* Helper functions for intergration test boilerplate
2017-07-07 21:36:47 +02:00
Ethan Koenig
f64c232953
Improve integration test helper functions ( #2049 )
...
Set request headers in helper functions, and new helper for requests with string-formatted URLs
2017-06-25 08:15:42 +08:00
Bo-Yi Wu
90f9bb12c6
fix golint error and rename func for suggestion. ( #1997 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-17 11:29:59 -05:00
Ethan Koenig
ce9b86082c
Consolidate boilerplate in integration tests ( #1979 )
2017-06-17 12:49:45 +08:00
Ethan Koenig
61716bd8f7
Display URLs in integration test logs ( #1924 )
2017-06-09 19:41:36 -05:00
Lauris BH
79494047b0
Show commit status icon in commits table ( #1688 )
...
* Show commit status icon in commits table
* Add comments
* Fix icons
* Few more places where commit table is displayed
* Change integration test to use goquery for parsing html
* Add integration tests for commit table and status icons
* Fix status to return lates status correctly on all databases
* Rewrote lates commit status selects
2017-05-07 22:40:31 +08:00