summaryrefslogtreecommitdiffstats
path: root/models/repo_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Include formatting check to the `make test` (and thus also `check`) rule (#1366)Sandro Santilli2017-06-061-1/+1
| | | | | | | | | | | | | | | | | | * Include formatting check to the `make check` rule ... and give it its own standalone target too (make fmt-check) Show diff on fmt-check failure Do not allow running "fmt-check" with incompatible go version Also simplify the `fmt` rule * Forbid running "make fmt" with Go version != 1.7 or 1.8 * Ignore bindata.go for spelling and formatting checks also remove duplicated variable assignment for GOFILES * Run `make fmt`
* Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)Phil Hopper2017-06-061-0/+22
|
* feat: expose url field on issue api. (#982)Bo-Yi Wu2017-03-031-0/+7
| | | | | | | | | | | | | | * Add api url func. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix: Add unit testing. * fix: conflicts * fix: remove trim * fix: revert test function name.
* refactor: move SearchRepositoryByName testing. (#1083)Bo-Yi Wu2017-02-281-52/+0
|
* fix: Wrong repo list on Explore page if user already loggin. (#1009)Bo-Yi Wu2017-02-221-0/+52
| | | | | | | | * fix: Wrong repo list on Explore page if user already loggin. * fix: code readable. * fix: declare variable
* test: Add testing for GetUserFork function (#944)Bo-Yi Wu2017-02-151-0/+33
|
* Fix public activity showing private repos (#892)Morgan Bazalgette2017-02-111-0/+19
| | | | | | | | | | * Fix public activity showing private repos (#811) Signed-off-by: Morgan Bazalgette <the@howl.moe> * error check after setting is_private to true * Add test for UpdateRepository w/ visibility change
* Use assert in legacy unit tests (#867)Ethan Koenig2017-02-081-59/+30
|
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-2/+36
|
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-8/+16
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* fixed test build errorLunny Xiao2016-11-251-6/+6
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Run goimports on the whole project (#34)Matthias Loibl2016-11-041-2/+2
| | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* The pruning for the synchronized mirrors is a option now. Default value: ↵Pablo Saavedra2016-07-091-13/+13
| | | | | | | | | | | | | enable_prune = true (#3246) Executed go fmt getEngine() not handles DB parameters (#2972) (#2974) Uses .AllCols() for Update in updateMirror() Spanish traslation removed Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
* Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992)Cosmin Stroe2016-04-221-0/+62