Wendell Sun
2f5c1ba1db
Bug fix for repo releases sorted ( #3522 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
Use TimeStampNow function
7 years ago
Lauris BH
58893384e8
Add issue closed time column to fix activity closed issues list ( #3537 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
7 years ago
Lauris BH
3a9c698821
Force remove test repo root path in case previous test is still locking it ( #3528 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
7 years ago
Codruț Constantin Gușoi
96c268c0fc
Implements generator cli for secrets ( #3531 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
7 years ago
Ethan Koenig
6eaeb01ecf
Update code.gitea.io/git ( #3482 )
7 years ago
Codruț Constantin Gușoi
011f128c89
Fixes missing avatars in offline mode ( #3471 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
7 years ago
Ethan Koenig
a89592d4ab
Reduce repo indexer disk usage ( #3452 )
7 years ago
Lauris BH
283e87d814
Fix rendering of wiki page list if wiki repo contains other files ( #3454 )
...
* Fix rendering of wiki page list if wiki repo contains other files
* Improve wiki filename tests
7 years ago
Ethan Koenig
b16c84de7b
Fix synchronization bug in repo indexer ( #3455 )
7 years ago
Morgan Bazalgette
17655cdf1b
Enable caching on assets and avatars ( #3376 )
...
* 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
7 years ago
Antoine GIRARD
b3fd94c13d
Add sensitive headers ( #3429 )
...
* Add HeaderWithSensitiveCase methods to respect casing
* Update webhook.go
7 years ago
Ethan Koenig
46c7fe371d
Fix PR merge error ( #3421 )
7 years ago
Ethan Koenig
3968c1149e
Fix SQL type error for webhooks ( #3424 )
7 years ago
Ethan Koenig
bac6ac033a
Fix race condition in repo renaming ( #3418 )
7 years ago
Ethan Koenig
c55a027da3
Fix empty checkout bug ( #3419 )
7 years ago
Wendell Sun
b627f1131b
Change local copy origin url after repository rename ( #3399 )
...
Fix #3378
7 years ago
Antoine GIRARD
9e842c8a72
Fix SSH auth lfs locks ( #3152 )
...
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
7 years ago
Antoine GIRARD
1ce3572409
Remove useless check ( #3384 )
...
In #3377 , I put check inside all write key function. This one is useless no.
7 years ago
Sandro Santilli
05ab747054
Force-push to base repo's ref/pull/#/head ( #3393 )
...
* 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
7 years ago
Lauris BH
ca306985d3
Change how merged PR commit info are prepared ( #3368 )
...
* Change how merged PR commits and diff are made
* Update code.gitea.io/git dependency
* Fix typo
* Remove unneeded local variable
7 years ago
Ethan Koenig
b0d5bb909b
Delete indexer DB entries when (re)creating index ( #3385 )
...
* comment
7 years ago
Antoine GIRARD
095fb9f2e3
Add integrations tests from git cli ( #3377 )
...
* 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
7 years ago
Lauris BH
a68bf746a4
Change reserved avatar name to correct - avatars ( #3375 )
7 years ago
Ethan Koenig
ccdb94992d
Asynchronously populate the repo indexer ( #3366 )
...
* Populate repo indexer in background
* Check if no repos exist
* race cond
7 years ago
Bo-Yi Wu
7a2a3fbafc
refactor(model): update user method. ( #3360 )
7 years ago
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
7 years ago
Lauris BH
be1330ec89
Remove hardcoded paths to fix randomly failing tests ( #3347 )
...
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
7 years ago
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
7 years ago
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
7 years ago
Antoine GIRARD
cb868b7851
Add missing indexer doc in configuration ( #3324 )
...
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
7 years ago
Lunny Xiao
835b890329
fix bug when a user delete but assigned on issue ( #3318 )
7 years ago
Vlad Temian
e78786ef39
Writable deploy keys ( closes #671 ) ( #3225 )
...
* Add is_writable checkbox to deploy keys interface
* Add writable key option to deploy key form
* Add support for writable ssh keys in the interface
* Rename IsWritable to ReadOnly
* Test: create read-only and read-write deploy keys via api
* Add DeployKey access mode migration
* Update gitea sdk via govendor
* Fix deploykey migration
* Add unittests for writable deploy keys
* Move template text to locale
* Remove implicit column update
* Remove duplicate locales
* Replace ReadOnly field with IsReadOnly method
* Fix deploy_keys related integration test
* Rename v54 migration with v55
* Fix migration hell
7 years ago
Lauris BH
8ac1501ad7
Add Pull Request merge options - Ignore white-space for conflict checking, 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
7 years ago
Sandro Santilli
a192f3052e
Serve pull request .diff files ( #3293 )
...
* 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
7 years ago
Alberto González Palomo
30fb81c71e
Use issue number/index instead of id for API URL. ( #3298 )
...
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896 ",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
7 years ago
modmew8
9f8349af06
Fixed asterisk based tasklist items, fixed requirement for one char after last blank to be a valid task. ( #3296 )
...
Signed-off-by: modmew8 <modmew8@gmail.com>
7 years ago
modmew8
d996da6bab
Added progressbar for issues ( #1146 ). ( #3171 )
...
* Added progressbar for issues (#1146 ).
* Updated the generated index.css.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed unnecessary blanks.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Formatted the files correctly, fmt-check terminates now without errors.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed variables, made computing the tasks on demand with precompiled regexp.
Signed-off-by: modmew8 <modmew8@gmail.com>
7 years ago
Sandro Santilli
8cd987af0c
Add repo-sync-releases admin command ( #3254 )
...
* Add repo-sync-releases admin command
Will help recovering corrupted database, see #3247
* Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo
* Fix debug output about num releases
* Introduce RepositoryListDefaultPageSize constant, set to 64
Use it from the new admin command
* Use RepositoryListDefaultPageSize in more places
* Document RepositoryListDefaultPageSize
7 years ago
Ethan Koenig
c64924682e
Fix race condition in team functions ( #3268 )
7 years ago
Morgan Bazalgette
edce41ae65
go back to using CFB for AES decryption/encryption for 2FA ( #3274 )
7 years ago
Ethan Koenig
3850bad4c0
Remove unused consts/vars ( #3270 )
7 years ago
Ethan Koenig
4c9341f689
Fix bugs in issue dashboard stats ( #3073 )
7 years ago
Lunny Xiao
f5155b9913
Small improve on deleting attachements ( #3145 )
...
* Small improve on deleting attachements
* improve the sequence of deletion
7 years ago
Antoine GIRARD
cc7b8e3379
Add more bench ( #3161 )
...
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
7 years ago
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
7 years ago
Ethan Koenig
e67b4055f9
Fix repo-transfer-and-team-repo-count bug ( #3241 )
7 years ago
Ethan Koenig
0e384c6376
Check ignored errors for issue and milestone count ( #3213 )
7 years ago
Ethan Koenig
6abfa48c0e
Remove unnecessary updates to issue indexer ( #3212 )
7 years ago
Ethan Koenig
befa7445d2
Unit tests for routers/repo/issue_label ( #3198 )
7 years ago
Lunny Xiao
f94c1b3943
Improvements for supporting UI Location ( #3146 )
...
* improvements for supporting UI Location
* improved the comment
7 years ago