summaryrefslogtreecommitdiffstats
path: root/models/repo.go
Commit message (Collapse)AuthorAgeFilesLines
* fix forgot deletion of notification when delete repository (#5506) (#5514)Lunny Xiao2018-12-111-0/+1
|
* Fix repository deletion when there is large number of issues in it (#5426) ↵Lunny Xiao2018-11-301-39/+40
| | | | (#5434)
* fix bug when users have serval teams with different units on different ↵Lunny Xiao2018-11-091-1/+1
| | | | repositories (#5307) (#5308)
* fix data race on migrate repository (#5224) (#5230)Lunny Xiao2018-10-311-3/+8
|
* fix sqlite lock (#5210) (#5223)Lunny Xiao2018-10-301-1/+1
|
* Fix race on updatesize (#5190) (#5215)Lunny Xiao2018-10-301-2/+2
| | | | | * fix race on updatesize * fix more repoPath
* Fix sqlite lock (#5176) (#5179)Lunny Xiao2018-10-251-2/+6
| | | | | * fix sqlite lock * fix sqlite lock on getUnitType
* fix bug forget to remove Stopwatch when remove repository (#4928)linweijie20122018-09-131-0/+3
|
* Site admin could create repos even MAX_CREATION_LIMIT=0 (#4645)Lunny Xiao2018-08-091-1/+1
| | | | | | * site admin could create repos even MAX_CREATION_LIMIT=0 * Optimize if structure
* Update xorm to latest version and fix correct `user` table referencing in ↵Lauris BH2018-07-201-1/+1
| | | | sql (#4473)
* Added dependencies for issues (#2196) (#2531)kolaente2018-07-171-1/+5
|
* Add default merge options when adding new repository (#4369)Lauris BH2018-07-051-0/+6
|
* Add `noreferrer` to rel='noopener` for <a> tags (#4328)cezar972018-07-031-1/+1
|
* hide issues from org private repos w/o team assignment (#4034)David Schneiderbauer2018-06-211-13/+5
|
* Fix not removed watches on unallowed repositories (#4201)David Schneiderbauer2018-06-191-0/+3
|
* Delete reactions added to issues and comments when deleting repository (#4232)Lauris BH2018-06-121-0/+3
|
* fix #4003 (#4004)奶爸2018-05-211-0/+2
| | | Webhook and hook_task not cleaned up when delete repository
* Fix some webhooks bugs (#3981)Lunny Xiao2018-05-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | * fix some webhooks bugs * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix test * fix clearlabels * fix pullrequest webhook bug fix #3492 * update release webhook description * remove unused code * fix push webhook in pull request * small changes
* Add more webhooks support and refactor webhook templates directory (#3929)Lunny Xiao2018-05-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * load attributes when created release * update comparsion doc
* Multiple assignees (#3705)kolaente2018-05-091-3/+3
|
* Fix to use only needed columns from tables to get repository git paths (#3870)Lauris BH2018-05-021-3/+47
|
* Fix path cleanup in multiple places (#3871)Lauris BH2018-05-011-1/+1
|
* Add topic support (#3711)Lunny Xiao2018-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * add topic models and unit tests * fix comments * fix comment * add the UI to show or add topics for a repo * show topics on repositories list * fix test * don't show manage topics link when no permission * use green basic as topic label * fix topic label color * remove trace content * remove debug function
* Add repository setting to enable/disable health checks (#3607)Allen Wild2018-03-271-2/+3
| | | | | | | | | | | | | | New Feature: * Repository struct field for IsFsckEnabled (default true of course) * Admin Settings section on repo options page, accessible only by admin users Possible Enhancements: * There's no way to force running health checks on all repos regardless of their IsFsckEnabled setting. This would be useful if there were an admin API or dashboard button to run fsck immediately. Issue: https://github.com/go-gitea/gitea/issues/1712 Signed-off-by: Allen Wild <allenwild93@gmail.com>
* Global code search support (#3664)Lunny Xiao2018-03-161-0/+6
| | | | | | | | | | | | * add global code search on explore * fix bug when no anyone public repos * change the icon * fix typo and add UnitTypeCode check for login non-admin user * fix ui description when no match
* Add admin dashboard option to run health checks (#3606)Allen Wild2018-03-021-0/+2
| | | | | There's one for git gc, why not git fsck too? Also add a couple more trace logs to GitFsck to see progress
* Fix race condition in repo renaming (#3418)Ethan Koenig2018-01-281-1/+6
|
* Fix empty checkout bug (#3419)Ethan Koenig2018-01-281-6/+6
|
* Change local copy origin url after repository rename (#3399)Wendell Sun2018-01-271-1/+10
| | | Fix #3378
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Serve pull request .diff files (#3293)Sandro Santilli2018-01-051-1/+3
| | | | | | | | | | | | * Serve pull request .diff files Closes #3259 * Add test for pull request redirection and .diff access * Typo * There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
* Remove unused consts/vars (#3270)Ethan Koenig2017-12-301-13/+0
|
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-4/+10
|
* Fix repo-transfer-and-team-repo-count bug (#3241)Ethan Koenig2017-12-191-14/+0
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-12/+9
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Fix integration tests (#3141)Ethan Koenig2017-12-111-4/+9
|
* Sanitize logs for mirror sync (#3057)Ethan Koenig2017-12-031-1/+6
|
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-021-16/+15
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Code/repo search (#2582)Ethan Koenig2017-10-271-6/+11
| | | Indexed search of repository contents (for default branch only)
* Add commit count caching (#2774)Lauris BH2017-10-261-0/+11
| | | | | | | | | | * Add commit count caching * Small refactoring * Add different key prefix for refs and commits * Add configuratuion option to allow to change caching time or disable it
* Use buffersize to reduce database connection when iterate (#2724)Lunny Xiao2017-10-211-2/+2
| | | | | | | | * use buffersize to reduce database connection when iterate * fix typo * add default value on app.ini comment
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-151-35/+0
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+19
| | | | | | | | | | (#2699) * Fix so that user can still fork his own repository to his organizations * Fix to only use owned organizations * Add integration test for forking own repository to owned organization
* Add Activity page to repository (#2674)Lauris BH2017-10-151-1/+18
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error
* Allow custom SSH user in UI for built-in SSH server (#2617) (#2678)Patrick G2017-10-141-3/+8
| | | | | | | | | | | | | | | | | * Allow custom SSH user in UI for built-in SSH server (#2617) * Some fixes * Did make fmt * Updated according to review - Renamed config to BUILTIN_SSH_SERVER_USER - Removed unnecessary default string value for config item * Updated according to review * Fixed some minor issues
* Fix orgnization user watch repository (#2670)Lunny Xiao2017-10-141-2/+2
| | | | | | | | | | * remove orgnization watch repositories * fix migration * fix typo and missing change * remove unused code
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-6/+6
|
* Remove repo unit index (#2621)Morlinest2017-10-021-3/+1
| | | | | | * Remove repo unit index * Fix sqlite
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-19/+12
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Reduce usage of allcols on update (#2596)Lunny Xiao2017-09-251-1/+1
| | | | | | * reduce usage of allcols on update * fix bug and tests