summaryrefslogtreecommitdiffstats
path: root/models/repo.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-1/+1
|
* bug fixed for delete repo failed (#1193)Lunny Xiao2017-03-101-1/+1
|
* feat: expose url field on issue api. (#982)Bo-Yi Wu2017-03-031-0/+5
| | | | | | | | | | | | | | * 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.
* fix wrong num of user repos because of duplicated click delete button & ↵Lunny Xiao2017-03-011-20/+28
| | | | performance optimization (#1092)
* Fix unused Engine bugs (#1064)Ethan Koenig2017-02-271-3/+3
|
* move all repo list functions as a standalone file (#1061)Lunny Xiao2017-02-271-259/+0
|
* fix: Admin can see all private repositories on Explore page. (#1026)Bo-Yi Wu2017-02-261-16/+32
| | | | | | * fix: Admin can see all private repositories on Explore page. * refactor: fix session
* Add "mirror" field to repo APIAndrey Nering2017-02-251-0/+1
|
* refactor: repo counts for SearchRepositoryByName func (#1045)Bo-Yi Wu2017-02-251-10/+16
|
* fix delete repo will hang on postgres (#1044)Lunny Xiao2017-02-241-9/+12
|
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-20/+55
| | | | | | | | | | | | | | | | * git: delegate all server-side Git hooks (#1623) * create hooks directories * take control hooks back * fix lint * bug fixed and minor changes * fix imports style * fix migration scripts
* Fix lint errorsEthan Koenig2017-02-221-1/+1
|
* fix: Wrong repo list on Explore page if user already loggin. (#1009)Bo-Yi Wu2017-02-221-12/+25
| | | | | | | | * fix: Wrong repo list on Explore page if user already loggin. * fix: code readable. * fix: declare variable
* Protected branches system (#339)Denis Denisov2017-02-211-0/+6
| | | | | | | | | | | | | | | | | | | | * Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
* Unit tests for repo watching (#963)Ethan Koenig2017-02-171-103/+0
|
* fix: 500 error on /explore/repos page. (#946)Bo-Yi Wu2017-02-151-17/+14
|
* refactor: small optimize for sql query (#940)Bo-Yi Wu2017-02-151-16/+24
| | | | | | * refactor: small optimize for sql query * fix: get owner name if Searcher is not nil or user star page.
* fix bug of multiple forks (#928)Lunny Xiao2017-02-141-0/+24
|
* feat: support search bar on star tab of user profile. (#917)Bo-Yi Wu2017-02-141-5/+25
| | | | | | | | | | | | | | * feat: support search bar on star tab of user profile. * fix: update testing. * fix: Using loadAttributes * fix: remove empty line. * remove LOWER Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* feat: add git version on admin panel. (#921)Bo-Yi Wu2017-02-131-3/+4
|
* Fix public activity showing private repos (#892)Morgan Bazalgette2017-02-111-0/+10
| | | | | | | | | | * 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
* Implement archive cleanup (#885)Andrew2017-02-111-3/+58
| | | | | | | | | | | | | | | | * Implement archive cleanup Fixes #769 Signed-off-by: Andrew <write@imaginarycode.com> * Make sure to close the directory file * Resolve issues noted by @strk * edit cheatsheet app.ini [ci skip] * oops [ci skip]
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-0/+18
|
* Redirects for renamed repos (#807)Ethan Koenig2017-02-051-0/+3
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-29/+121
| | | | | | | | | | | | | | | | * 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
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-041-2/+6
|
* Drop redundant columns from issue_user table (#638)Ethan Koenig2017-02-031-1/+3
|
* Cleanup log messagingGabriel Jackson2017-02-021-14/+14
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* fix xorm NewSession uncorrected usages (#774)Lunny Xiao2017-01-281-12/+11
|
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-171-12/+14
| | | | | | | | | | * Add a process.Manager singleton with process.GetManager() * Use process.GetManager everywhere * Fix godoc comments for process module * Increment process counter id after locking the mutex
* bug fixed for update repository (#664)Lunny Xiao2017-01-141-1/+1
|
* API endpoint for subscribers (#598)Ethan Koenig2017-01-071-7/+4
|
* Merge pull request #555 from ethantkoenig/tests/pullAndrey Nering2017-01-061-0/+1
|\ | | | | Unit tests for models/pull.go
| * Unit tests for models/pull.goEthan Koenig2017-01-061-0/+1
| |
* | Create missing database indexes (#596)Andrey Nering2017-01-061-7/+7
|/
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-3/+3
|
* resolved #485: when migrate empty wiki repo, then ignore (#541)Lunny Xiao2016-12-311-2/+5
|
* Tab on user profile to show starred repos (#519)Andrey Nering2016-12-291-60/+0
| | | | | | | | | | | | | | * Tab on user profile to show starred repos * Make golint happy and use transactions on StarRepo function * x -> sess * Use sess.Close() instead of sess.Rollback() * Add copyright * Fix lint
* Replace Gogs with Gitea (#520)Bwko2016-12-281-3/+3
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-241-15/+58
|
* Add default values for settings (#455)Lunny Xiao2016-12-231-0/+2
| | | | | | | | | | * add default values for settings * more default values * more default settings and labels resource * mv locale to options
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* Fix typo (#407)Richie B2B2016-12-161-1/+1
|
* Remove stale comment in models/repo.go (#366)Ethan Koenig2016-12-081-1/+0
|
* Bug fixes for repo permissions in APIEthan Koenig2016-12-071-1/+6
| | | | Also move duplicated code into repo.APIFormat(..)
* Catch os... errorsBwko2016-12-021-5/+25
|
* Added rel="noopener" to target="_blank" hrefs (#327)Bwko2016-12-021-1/+1
| | | | | | * Added rel="noopener" to target="_blank" hrefs * Replaced gogs.io/docs with docs.gitea.io
* Lint models/repo.goBwko2016-11-281-17/+73
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-3/+3
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket