Commit Graph
100 Commits
Author SHA1 Message Date
Ethan KoenigandLunny Xiao 7ea4bfc561 API endpoint for testing webhook (#3550)
* API endpoint for testing webhook

* Empty commit to rerun CI
2018-04-29 14:21:33 +08:00
Ethan KoenigandLunny Xiao d27d720f05 Use unique temp dirs in unit tests (#3494)
* Use unique temp dirs in unit tests

* Remove temp dirs after tests run

* os.RemoveAll -> removeAllWithRetry
2018-02-21 01:38:52 -06:00
Ethan KoenigandBo-Yi Wu 7b104f0cd0 Populate URL field of API commits (#3546)
* Populate URL field of API commits

* fix orgmode_test
2018-02-20 20:50:42 +08:00
Ethan KoenigandLauris BH 4c9d9c221a Improve wiki test (#3493) 2018-02-13 11:19:49 +02:00
Ethan KoenigandLauris BH 6eaeb01ecf Update code.gitea.io/git (#3482) 2018-02-10 20:19:26 +02:00
Ethan KoenigandLauris BH a2648281a0 Improvements to git integration test (#3466) 2018-02-06 11:27:24 +02:00
Ethan KoenigandLauris BH a89592d4ab Reduce repo indexer disk usage (#3452) 2018-02-05 20:29:17 +02:00
Ethan KoenigandLauris BH b16c84de7b Fix synchronization bug in repo indexer (#3455) 2018-02-05 10:39:51 +02:00
Ethan KoenigandLauris BH 46c7fe371d Fix PR merge error (#3421) 2018-01-29 12:18:20 +02:00
Ethan KoenigandLauris BH 3968c1149e Fix SQL type error for webhooks (#3424) 2018-01-29 02:26:01 +02:00
Ethan KoenigandLauris BH bac6ac033a Fix race condition in repo renaming (#3418) 2018-01-28 14:24:59 +02:00
Ethan KoenigandLauris BH c55a027da3 Fix empty checkout bug (#3419) 2018-01-28 13:27:42 +02:00
Ethan KoenigandLauris BH b0d5bb909b Delete indexer DB entries when (re)creating index (#3385)
* comment
2018-01-17 23:51:07 +02:00
Ethan KoenigandLauris BH d29aa76777 Fix en-US locale (#3371) 2018-01-15 00:27:57 +02:00
Ethan KoenigandLauris BH ccdb94992d Asynchronously populate the repo indexer (#3366)
* Populate repo indexer in background

* Check if no repos exist

* race cond
2018-01-14 19:34:41 +02:00
Ethan KoenigandLauris BH f48680888c Remove IsOwner, NumTeams from OrgUser (#3269) 2018-01-08 09:48:37 +02:00
Ethan KoenigandBo-Yi Wu ce7ae17b81 Fix swagger docs (#3300) 2018-01-04 14:31:40 +08:00
Ethan KoenigandLunny Xiao c64924682e Fix race condition in team functions (#3268) 2017-12-30 21:08:08 -06:00
Ethan KoenigandLunny Xiao 3850bad4c0 Remove unused consts/vars (#3270) 2017-12-30 19:10:48 -06:00
Ethan KoenigandLauris BH 4c9341f689 Fix bugs in issue dashboard stats (#3073) 2017-12-26 01:25:16 +02:00
Ethan KoenigandLauris BH 156aa42ba0 Update code.gitea.io/git (#3251) 2017-12-22 09:00:30 +02:00
Ethan KoenigandLauris BH 515cdaa85d Fix ignored errors when checking if organization, team member (#3177) 2017-12-21 09:43:26 +02:00
Ethan KoenigandLunny Xiao e67b4055f9 Fix repo-transfer-and-team-repo-count bug (#3241) 2017-12-19 23:37:56 -06:00
Ethan KoenigandLauris BH 0e384c6376 Check ignored errors for issue and milestone count (#3213) 2017-12-18 16:06:51 +02:00
Ethan KoenigandLauris BH 6abfa48c0e Remove unnecessary updates to issue indexer (#3212) 2017-12-17 13:53:02 +02:00
Ethan KoenigandLauris BH befa7445d2 Unit tests for routers/repo/issue_label (#3198) 2017-12-15 23:11:02 +02:00
Ethan KoenigandLauris BH bde0409433 Fix repo links on user profile (#3197) 2017-12-15 06:55:08 +02:00
Ethan KoenigandLunny Xiao 0b77dbc11c Fix new pull request link (#3133)
* Fix new pull request link

* Only show button for branches
2017-12-13 13:06:25 +08:00
Ethan KoenigandBo-Yi Wu 9f033bf2b5 Make test more robust (#3167) 2017-12-12 15:17:08 +08:00
Ethan KoenigandLunny Xiao c082c3bce3 Restore make test target (#3139)
* Restore make test target

* make build -> go build
2017-12-11 10:31:07 +08:00
Ethan KoenigandLunny Xiao 58a7de2aea Update code.gitea.io/git (#3137) 2017-12-11 10:23:34 +08:00
Ethan KoenigandLunny Xiao 682ac11958 Log unexpected responses in integration tests (#3138)
* Log flash error message in integration tests

* Also log short, non-HTML responses
2017-12-11 10:15:27 +08:00
Ethan KoenigandLunny Xiao defc97afc2 Fixtures for public_key table (#3140) 2017-12-11 09:50:29 +08:00
Ethan KoenigandBo-Yi Wu d1efe2078a Fix integration tests (#3141) 2017-12-11 08:52:05 +08:00
Ethan KoenigandLunny Xiao 596308f213 Fix missing branch in release bug (#3108) 2017-12-08 13:22:02 +08:00
Ethan KoenigandLunny Xiao 68179dc676 Remove unnecessary function call (#3109) 2017-12-08 09:02:34 +08:00
Ethan KoenigandLunny Xiao 5e4427e4e7 Fix repo indexer and submodule bug (#3107) 2017-12-07 15:18:04 +08:00
Ethan KoenigandLunny Xiao 54907dfbd1 Fix legacy URL redirects (#3100) 2017-12-07 09:09:02 +08:00
Ethan KoenigandLunny Xiao 03eb47b216 Fix repo links (#3093) 2017-12-05 13:52:53 +08:00
Ethan KoenigandLunny Xiao c0a7899416 Sort repos in issues dashboard sidebar (#3072)
* Sort repos in issues dashboard sidebar

* Sort repos by name
2017-12-04 12:39:01 +08:00
Ethan KoenigandLauris BH 3c1b1ca78e Fix error message sanitiziation (#3082) 2017-12-04 03:48:03 +02:00
Ethan KoenigandLauris BH e59adcde65 Use httptest in integration tests (#3080) 2017-12-04 00:46:01 +02:00
Ethan KoenigandLunny Xiao ab62da283a Fix avatar URLs (#3069)
* Fix avatar URLs

* import order
2017-12-03 19:55:13 +08:00
Ethan KoenigandLunny Xiao a0964775ab Sanitize logs for mirror sync (#3057) 2017-12-03 13:29:41 +08:00
Ethan KoenigandLunny Xiao 3163abedd6 Fix ref parsing in commit messages (#3067) 2017-12-03 10:20:12 +08:00
Ethan KoenigandLauris BH 91f3d77ceb Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
Ethan KoenigandLauris BH 013db70fce Removed unused field in form (#3023) 2017-11-29 22:52:34 +02:00
Ethan KoenigandLunny Xiao b7ebaf6d20 Various wiki bug fixes (#2996)
* Update macaron

* Various wiki bug fixes
2017-11-28 17:43:51 +08:00
Ethan KoenigandLauris BH 1028ef2def Don't print SQL in unit tests (#2995)
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
2017-11-27 12:29:48 +02:00
Ethan KoenigandLauris BH f148a4a1ed Fix coverage reports (#2974) 2017-11-26 20:07:40 +02:00
Ethan KoenigandLunny Xiao 716ac1214f Enable admin to search by email (#2888) 2017-11-26 16:40:38 +08:00
Ethan KoenigandLunny Xiao 40c545ddbc Fix files/commits of merged PRs (#2937) 2017-11-25 21:47:19 +08:00
Ethan KoenigandLunny Xiao 2cb6c51158 Fix over-escaped characters (#2956) 2017-11-22 15:09:48 +08:00
Ethan KoenigandLunny Xiao ea78a6db57 Spaces to tabs in templates (#2953) 2017-11-21 13:43:00 +08:00
Ethan KoenigandLunny Xiao 0f6dc411df Remove unnecessary IssueList attribute loads (#2936) 2017-11-21 13:28:22 +08:00
Ethan KoenigandLunny Xiao c3b6383b3a Fix comment API paths (#2813) 2017-11-20 15:24:07 +08:00
Ethan KoenigandLunny Xiao 876bafb7ef Fix API status code for hook creation (#2814)
* Fix API status code for hook creation

* Named constants for response statuses
2017-11-20 15:00:53 +08:00
Ethan KoenigandLauris BH 061f65ff29 Restore build as the default make rule (#2935) 2017-11-19 09:50:23 +02:00
Ethan KoenigandLunny Xiao 6ee65757c7 Combine identical Makefile rules (#2916) 2017-11-17 18:17:39 +08:00
Ethan KoenigandLunny Xiao d22a8dc022 Page parameter for repo search API (#2915) 2017-11-15 16:10:26 +08:00
Ethan KoenigandLunny Xiao bd23e36bec Add owner to delete repo message (#2886) 2017-11-15 09:37:16 +08:00
Ethan KoenigandLauris BH f26f4a7e01 Update swagger documentation (#2899)
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
2017-11-13 09:02:25 +02:00
Ethan KoenigandLunny Xiao 5481be0ac5 Fix issue link rendering in commit messages (#2897)
* Fix issue link rendering in commit messages

* Update page.tmpl

* No links for parens

* remove comment
2017-11-13 09:35:55 +08:00
Ethan KoenigandLunny Xiao 47f40ccd5e Add integration test for user deleting account (#2891) 2017-11-12 21:36:16 +08:00
Ethan KoenigandBo-Yi Wu 5abd1d2a68 Add integration test for logging out (#2892) 2017-11-11 23:29:07 -06:00
Ethan KoenigandKim "BKC" Carlbäcker d91fe5254d Fix ignored errors in API route (#2850)
* Fix ignored errors in API route
2017-11-04 19:10:01 +01:00
Ethan KoenigandBo-Yi Wu 1b6a962e70 Include HTTP method in test error message (#2815) 2017-11-01 00:54:24 -05:00
Ethan KoenigandLunny Xiao e6a97b6675 Use api.TrackedTime in API (#2807)
* Use api.TrackedTime in API

* APIFormat() method

* Rename function
2017-11-01 10:25:14 +08:00
Ethan KoenigandLunny Xiao 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 KoenigandLauris BH 5866eb2321 Code/repo search (#2582)
Indexed search of repository contents (for default branch only)
2017-10-27 09:10:54 +03:00
Ethan KoenigandLauris BH c25303b11c Fix activity locale (#2709) 2017-10-15 21:30:26 +03:00
Ethan KoenigandLauris BH 67e1c29dc5 Refactor duplicated code in repo handlers (#2657)
* Refactor duplicated code in repo handlers

* ctx.Handle
2017-10-05 10:32:25 +03:00
Ethan KoenigandLauris BH aa962deec0 Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
Ethan KoenigandLauris BH 4b2c8ca533 Use session when creating user (#2638) 2017-10-03 09:29:26 +03:00
Ethan KoenigandLauris BH fa28de820e Make indexer code more reusable (#2590) 2017-09-25 03:08:48 +03:00
Ethan KoenigandLauris BH ccff57103a Automatically regenerate indexer for incompatible versions (#2524) 2017-09-23 00:30:56 +03:00
Ethan KoenigandLunny Xiao fa1cbc2896 Always run fmt check in CI (#2546) 2017-09-21 09:34:32 +08:00
Ethan KoenigandLunny Xiao acecedc410 Use named ActionType constants in template helper (#2545) 2017-09-20 09:22:42 +08:00
Ethan KoenigandLunny Xiao a1ed239bf2 Fix fmt errors (#2544) 2017-09-19 19:44:49 +08:00
Ethan KoenigandLauris BH 4cb9394a97 Fix lint errors (#2547) 2017-09-19 11:08:30 +03:00
Ethan KoenigandLunny Xiao 6c6533fb31 Make integration tests more user-friendly (#2536) 2017-09-18 16:35:42 +08:00
Ethan KoenigandLauris BH b0f7457d9e Improve issue search (#2387)
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
2017-09-16 23:16:21 +03:00
Ethan KoenigandLunny Xiao 911ca02153 Convert spaces to tabs in footer.tmpl (#2520) 2017-09-16 17:04:27 +08:00
Ethan KoenigandLauris BH b496e3e1cc Fix unit test race condition (#2516) 2017-09-15 10:54:25 +03:00
Ethan KoenigandLauris BH b689bb6180 Webhooks for repo creation/deletion (#1663)
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
2017-09-03 11:20:24 +03:00
Ethan KoenigandLunny Xiao 491f0ebc58 Fix route handler order (#2409)
* Fix route handler order

* Fix more routes
2017-08-29 14:53:51 +08:00
Ethan KoenigandLunny Xiao d23b36c598 Error message for integration test (#2410) 2017-08-28 21:36:02 +08:00
Ethan KoenigandLauris BH fd6e91077a Fix SQL condition bug in GetFeeds(..) (#2360) 2017-08-23 08:51:58 +03:00
Ethan KoenigandLauris BH e7653a67a1 No error log entries for repo 404 (#2200) 2017-08-19 15:32:18 +03:00
Ethan KoenigandLunny Xiao 7907786040 Trigger sync webhooks on UI commit (#2302)
* Trigger sync webhooks on UI commit

* Also fix UI upload/delete
2017-08-17 15:22:08 +08:00
Ethan Koenig e58237ee3f Fix import order 2017-07-06 16:38:38 -04:00
Ethan Koenig e14ea9979b Relative URL tests 2017-07-06 12:46:31 -04:00
Ethan Koenig b1d7348a20 Fix wiki preview links 2017-07-06 12:07:15 -04:00
Ethan KoenigandLauris BH eae9154811 Fix SQL bug in models.PullRequests 2017-07-01 14:08:43 +03:00
Ethan Koenig 2b410e44b2 lint 2017-06-29 12:11:34 -04:00
Ethan Koenig 05e3726415 Use default avatar on error 2017-06-29 12:10:33 -04:00
Ethan Koenig 23f0728879 Don't ignore gravatar error 2017-06-29 10:37:55 -04:00
Ethan Koenig d1e4af66c1 Set console to debug for integration tests 2017-06-15 08:12:30 -04:00
Ethan Koenig 23d0735f90 Absolute path for setting.CustomConf 2017-06-09 22:27:13 -04:00
Ethan Koenig e9b1b908ee Fix setting.AppPath for integration tests 2017-06-09 15:42:48 -04:00