Commit Graph

239 Commits (3746a625f55d24fc48a0198c8108bdebfd4edeb3)

Author SHA1 Message Date
Lunny Xiao fd6034aaf2 Add units to team ()
* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code
Ethan Koenig 251fb935ff Don't recreate database in integration tests ()
Lauris BH 0144817971 Do not allow commiting to protected branch from online editor ()
* Do not allow commiting to protected branch from online editor

* Add editor integration tests for adding new file and not allowing to add new file to protected branch
Ethan Koenig 66c803fae2 MySQL, Postgres integration tests in drone ()
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
Lunny Xiao e31c02d4bf fix bug on issue view when not login ()
* fix bug on issue view when not login

* hide issue watch when not login

* update the tests

* fix test on issue
Kim "BKC" Carlbäcker 4bea219128 Status-API ()
Bo-Yi Wu fa2a513c62 feat: add download count field and unit testing for attachment. ()
* feat: add download count field and unit testing.

* fix: unit testing

* refactor: improve testing.

* fix: update comment

* add default value.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Andrey Nering e6781d5488 Add unit tests for issue_watch
Sandro Santilli 9182a35f18 Show user OpenID URIs in their profile ()
Sandro Santilli 447c9b428f Send notifications to partecipants in issue comments ()
* Send notifications to partecipants in issue comments

Closes 

Includes test (still failing)

* Do not include "labelers" to participants

Fix test to expect what GetParticipants return
Ethan Koenig 3803f257fb Move user_follow to separate file ()
Also add unit tests
Ethan Koenig 4b286f282a Consistency checks for action unit tests ()
Lunny Xiao cd1821a7e2 Move push update to post-receive and protected branch check to pre-receive ()
* move all push update to git hook post-receive and protected branch check to git hook pre-receive

* add SSH_ORIGINAL_COMMAND check back

* remove all unused codes

* fix the import
Ethan Koenig f1ab906c51 Unit tests for models/repo_collaboration ()
Ethan Koenig 4f3880ff15 Bug fixes and unit tests for org_team ()
Bo-Yi Wu 83b6d03231 fix: Wrong repo list on Explore page if user already loggin. ()
* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable
Ethan Koenig be48b32e63 Unit tests for repo watching ()
Ethan Koenig 140967f002 Unit tests for repo redirects ()
Bo-Yi Wu 43c94d0a6c test: Add testing for GetUserFork function ()
Morgan Bazalgette 442145dbd3 Fix public activity showing private repos ()
* Fix public activity showing private repos ()

Signed-off-by: Morgan Bazalgette <the@howl.moe>

* error check after setting is_private to true

* Add test for UpdateRepository w/ visibility change
Ethan Koenig a6751cec04 Unit tests for issue_milestone ()
Ethan Koenig 181c8d9c99 Fix consistency check ()
Ethan Koenig 5fbab97373 Fix broken test fixture ()
Bo-Yi Wu 71d35dae8c fix: wrong pages number which includes private repository count. ()
Ethan Koenig 438e1a7d46 Fix inconsistencies in unit test fixtures
Ethan Koenig 5972aa9af3 Fix inconsistencies in test fixtures
Ethan Koenig d0960b8035 Move IssueUser code to separate file ()
Also add unit tests
Bo-Yi Wu b6da658553 test: Add user mail testing. ()
Bo-Yi Wu d7d094bd8a fix: ignore email notifications if user is not active. ()
Ethan Koenig 10644d6dd7 Bug fixes and unit tests for models/issue_label ()
Ethan Koenig 2eb15f4a61 Unit tests and remove unused functions in models/notification ()
* Unit tests and remove unused functions in models/notification

* Read -> Unread
Ethan Koenig a2412492da Unit tests and bug fix for models/org
Ethan Koenig 0934d1b1ea Bug fixes and unit tests for models/webhook ()
Ethan Koenig a6832c234d Unit tests for models/star ()
Ethan Koenig b316b2e740 Unit tests for models/admin
Ethan Koenig 4b23e6a694 Unit tests for models/action ()
Ethan Koenig 6072b03291 Unit tests for models/access.go ()
Ethan Koenig 72bfabfada Unit tests for models/pull.go
Ethan Koenig de8b73dd92 Unit tests for token and update models