summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Add repository setting to enable/disable health checks (#3607)Allen Wild2018-03-273-2/+27
| | | | | | | | | | | | | | 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>
* Set default branchname on first push (#3715)Bwko2018-03-251-1/+5
|
* Add protected branch whitelists for merging (#3689)Chri-s2018-03-254-36/+149
| | | | | | | | * Add database migrations for merge whitelist * Add merge whitelist settings for protected branches * Add checks for merge whitelists
* Improve release page UI (#3693)Jonas Franz2018-03-191-0/+11
| | | | | | | | | | * Improve release page ui by adding size Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation to a.MustSize() Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Global code search support (#3664)Lunny Xiao2018-03-162-0/+31
| | | | | | | | | | | | * 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
* Added checks for protected branches in pull requests (#3544)Chri-s2018-03-132-0/+44
| | | | | | | | | | | | | | | | | | * Added checks for protected branches in pull requests Signed-off-by: Christian Wulff <NChris@posteo.net> * Moved check for protected branch into new function CheckUserAllowedToMerge Signed-off-by: Christian Wulff <NChris@posteo.net> * Removed merge conflict lines from last commit Signed-off-by: Christian Wulff <NChris@posteo.net> * Explicit check for error type in ViewIssue Signed-off-by: Christian Wulff <NChris@posteo.net>
* Add label descriptions (#3662)Lauris BH2018-03-133-5/+38
| | | | | | * Add label descriptions * Add default descriptions to label template
* Fix MySQL and PostgreSQL column drop SQL (#3649)Lauris BH2018-03-091-1/+1
|
* Fix column removal in MSSQL (#3638)Lauris BH2018-03-072-21/+61
| | | | | | | | * Fix column removal in MSSQL * Use xorm session in MSSQL drop column operations * Add transaction as MSSQL alter table is transactional
* Add Attachment API (#3478)Jonas Franz2018-03-063-3/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
* Don't write to log NoCommitterAccount (#3621)Morgan Bazalgette2018-03-041-1/+5
| | | | | | | | | | | * Don't write to log NoCommitterAccount It's way too verbose, and the information is also printed to the user already. Fixes #3602. * ignore err only if it's a ErrUserNotExist * Replace with IsErrUserNotExist
* fix: Add feed for organization (#3594)Bo-Yi Wu2018-03-032-0/+16
| | | | | | | | | | | | * feat: Add feed for organization * fix: testing * fix: testing * fix: testing * fix: testing
* 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 the protected branch panic issue (#3567)Wendell Sun2018-02-231-0/+4
|
* Fix remove team member issue (#3566)Wendell Sun2018-02-232-9/+27
| | | | | Put sess.Commit() out of the RemoveOrgUser function Add an empty line to separate import packages
* Fix query protected branch bug (#3563)Wendell Sun2018-02-221-2/+1
| | | Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
* fix: if Mirrors repo no content is fetched, updated time should not b… (#3551)Bo-Yi Wu2018-02-221-1/+15
| | | | | | | | | | | | * fix: if Mirrors repo no content is fetched, updated time should not be changed * fix: sync update time from mirror repo. * fix: one single session. * update comment. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor: reduce sql query in retrieveFeeds (#3547)Bo-Yi Wu2018-02-212-1/+108
|
* Use unique temp dirs in unit tests (#3494)Ethan Koenig2018-02-211-8/+25
| | | | | | | | * Use unique temp dirs in unit tests * Remove temp dirs after tests run * os.RemoveAll -> removeAllWithRetry
* Bug fix for repo releases sorted (#3522)Wendell Sun2018-02-211-1/+3
| | | | | Signed-off-by: Wendell Sun <iwendellsun@gmail.com> Use TimeStampNow function
* Add issue closed time column to fix activity closed issues list (#3537)Lauris BH2018-02-195-5/+49
| | | Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Force remove test repo root path in case previous test is still locking it ↵Lauris BH2018-02-181-1/+14
| | | | | | (#3528) Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Implements generator cli for secrets (#3531)Codruț Constantin Gușoi2018-02-183-6/+7
| | | Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
* Update code.gitea.io/git (#3482)Ethan Koenig2018-02-102-41/+23
|
* Fixes missing avatars in offline mode (#3471)Codruț Constantin Gușoi2018-02-081-1/+3
| | | Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
* Reduce repo indexer disk usage (#3452)Ethan Koenig2018-02-052-8/+12
|
* Fix rendering of wiki page list if wiki repo contains other files (#3454)Lauris BH2018-02-053-2/+20
| | | | | | * Fix rendering of wiki page list if wiki repo contains other files * Improve wiki filename tests
* Fix synchronization bug in repo indexer (#3455)Ethan Koenig2018-02-051-62/+100
|
* Enable caching on assets and avatars (#3376)Morgan Bazalgette2018-02-041-1/+1
| | | | | | | | | | | | | | * Enable caching on assets and avatars Fixes #3323 * Only set avatar in user BeforeUpdate when there is no avatar set * add error checking after stat * gofmt * Change cache time for avatars to an hour
* Add sensitive headers (#3429)Antoine GIRARD2018-01-311-2/+2
| | | | | | | * Add HeaderWithSensitiveCase methods to respect casing * Update webhook.go
* Fix PR merge error (#3421)Ethan Koenig2018-01-291-5/+1
|
* Fix SQL type error for webhooks (#3424)Ethan Koenig2018-01-291-3/+10
|
* 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
* Fix SSH auth lfs locks (#3152)Antoine GIRARD2018-01-272-34/+40
| | | | | | | | | | * Fix SSH auth LFS locks * Activate SSH/lock test * Remove debug * Follow @lunny recommendation for AfterLoad method
* Remove useless check (#3384)Antoine GIRARD2018-01-191-4/+0
| | | In #3377, I put check inside all write key function. This one is useless no.
* Force-push to base repo's ref/pull/#/head (#3393)Sandro Santilli2018-01-191-0/+1
| | | | | | | | | | | * Force-push to base repo's ref/pull/#/head Fixes force-pushing to pull request branches, otherwise failing with: [...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git ! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward) * format
* Change how merged PR commit info are prepared (#3368)Lauris BH2018-01-191-3/+8
| | | | | | | | | | * Change how merged PR commits and diff are made * Update code.gitea.io/git dependency * Fix typo * Remove unneeded local variable
* Delete indexer DB entries when (re)creating index (#3385)Ethan Koenig2018-01-171-0/+7
| | | | * comment
* Add integrations tests from git cli (#3377)Antoine GIRARD2018-01-161-0/+10
| | | | | | | | | | | * test: integration add git cli tests Extracted form for easing review process and debug #3152 * test: integration add git cli big file commit * fix: Don't rewrite key if internal server
* Change reserved avatar name to correct - avatars (#3375)Lauris BH2018-01-161-1/+1
|
* Asynchronously populate the repo indexer (#3366)Ethan Koenig2018-01-141-17/+41
| | | | | | | | * Populate repo indexer in background * Check if no repos exist * race cond
* refactor(model): update user method. (#3360)Bo-Yi Wu2018-01-131-32/+16
|
* Cleanup models.User.HashPassword (#3334)Kim "BKC" Carlbäcker2018-01-122-13/+13
|
* Remove hardcoded paths to fix randomly failing tests (#3347)Lauris BH2018-01-113-3/+11
| | | | | | * Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
* Change EncodePasswd to HashPassword (#3329)Morgan Bazalgette2018-01-082-4/+43
| | | | | | * Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-087-77/+63
|
* Add missing indexer doc in configuration (#3324)Antoine GIRARD2018-01-081-1/+1
| | | | | | * Add missing indexer doc in configuration * Unify MAX_FILE_SIZE to 1024 * 1024
* fix bug when a user delete but assigned on issue (#3318)Lunny Xiao2018-01-071-2/+8
|