Ethan Koenig
4c9d9c221a
Improve wiki test ( #3493 )
6 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
6 years ago
Lauris BH
ca4f5c37e6
Fix branch deletion for squash or rebase merged pull requests ( #3425 )
6 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
6 years ago
Morgan Bazalgette
65861900cd
Handle refactor ( #3339 )
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
6 years ago
Deyong Zhu
d663cef2a5
Fix branch name escaping in compare url ( #3311 )
* Fixes #3303
6 years ago
Sandro Santilli
44053532bb
Serve .patch for pull requests ( #3305 )
* Serve .patch for pull requests
Closes #3259
Updates "git" module, for GetFormatPatch
* Handle io.Copy error
6 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
6 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
6 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
6 years ago
Elouan Martinet
5057c6b43f
Fix guide link for webhooks in repository settings ( #3291 ) ( #3292 )
Signed-off-by: Elouan Martinet <exa@elou.world>
6 years ago
Ethan Koenig
4c9341f689
Fix bugs in issue dashboard stats ( #3073 )
6 years ago
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
7 years ago
Lunny Xiao
529482135c
Support default private when creating or migrating repository ( #3239 )
* support default private when creating or migrating repository
* fix fmt
* use string constants on repository default private in app.ini
* fix fmt
7 years ago
Ethan Koenig
0e384c6376
Check ignored errors for issue and milestone count ( #3213 )
7 years ago
Ethan Koenig
befa7445d2
Unit tests for routers/repo/issue_label ( #3198 )
7 years ago
Lauris BH
d3c5911ffc
Fix wiki page list not rendering after updatedunix changes ( #3175 )
7 years ago
harry
03ec35ed79
Mention completion for issue editor. ( #3136 )
* new issue mention
* Mention completion on new issue and view issue page.
* Code format.
* Require tribute in pull request page.
7 years ago
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* 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
7 years ago
Antoine GIRARD
ef78309b65
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. ( #3092 )
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
7 years ago
Ethan Koenig
596308f213
Fix missing branch in release bug ( #3108 )
7 years ago
Sasha Varlamov
311c83ad17
Allow adding collaborators with (fullname) ( #3103 )
* Allow adding collaborators with (fullname)
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Refactor username suffix to utils pkg
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
7 years ago
Ethan Koenig
3c1b1ca78e
Fix error message sanitiziation ( #3082 )
7 years ago
Lauris BH
5dc37b187c
Add reactions to issues/PR and comments ( #2856 )
7 years ago
Lunny Xiao
35cc5b0402
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ( #3043 )
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
* fix tests
* fix tests bug
* some improvements
7 years ago
Ethan Koenig
91f3d77ceb
Unit tests for wiki routers ( #3022 )
7 years ago
Duncan Ogilvie
551f3cbe42
Memory usage improvements ( #3013 )
* govendor update code.gitea.io/git
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Greatly improve memory usage
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
7 years ago
Ethan Koenig
b7ebaf6d20
Various wiki bug fixes ( #2996 )
* Update macaron
* Various wiki bug fixes
7 years ago
Lauris BH
0d4c63fd70
Fix go-get, src and raw urls to new scheme ( #2978 )
7 years ago
Ethan Koenig
40c545ddbc
Fix files/commits of merged PRs ( #2937 )
7 years ago
Timur Makarchuk
dbb7715b0b
Remove render issue link ( #2954 )
* Remove function that does nothing
* Remove unused import
7 years ago
Lunny Xiao
10b54df2b2
Add dingtalk webhook ( #2777 )
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
7 years ago
Michael Kuhn
420fc8efc2
Disable add key button if SSH is disabled ( #2873 )
7 years ago
Lunny Xiao
cdc4600725
Fix fork repository cycle to self ( #2860 )
* fix fork repository cycle to self
* rename testForkRepo to traverseParentRepo
7 years ago
Ethan Koenig
513375c429
Make URL scheme unambiguous ( #2408 )
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
7 years ago
Ethan Koenig
5866eb2321
Code/repo search ( #2582 )
Indexed search of repository contents (for default branch only)
7 years ago
Lauris BH
eca05b09aa
Add commit count caching ( #2774 )
* 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
7 years ago
Bwko
3ab580c8d6
Add branch overiew page ( #2108 )
* Add branch overiew page
* fix changed method name on sub menu
* remove unused code
7 years ago
Jonas Franz
f4190f8df8
Render plain text README.txt monospaced ( #2721 )
Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Lauris BH
c1b0c9e7c4
Fix PR, milestone and label functionality if issue unit is disabled ( #2710 )
* Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user
* Fix multi-actions in PR page
* Change error message
* Fix comment update and delete functionality in PR
7 years ago
Lunny Xiao
a75d5c72bb
Fix plain readme didn't render correctly on repo home page ( #2705 )
* fix plain readme didn't render correctly on repo home page
* fix missing render
* remove unused template variables
7 years ago
Lauris BH
c7f4f07765
Integration test for activity page ( #2704 )
* Integration test for activity page
* Small code refactoring for acitvity page
* Move activity stats calculation logic to model
7 years ago
Lauris BH
f3833b7ce4
Create new branch from branch selection dropdown ( #2130 )
* 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
7 years ago
David Schneiderbauer
4ccb0fe338
fix .netrc authentication ( #2700 )
* provide both possible authentication solutions
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years ago
Lauris BH
1ec4dc6c1d
Fix so that user can still fork his own repository to owned organizations ( #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
7 years ago
Lauris BH
f42dbdbae5
Add Activity page to repository ( #2674 )
* 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
7 years ago
David Schneiderbauer
0cef8ce192
fix panic on gogs webhook creation ( #2675 )
* fix panic on gogs webhook creation
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix panic in gogs webhook edit
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years ago
Kazuki Sawada
e1266a19c8
Change pull description text ( #2075 ) ( #2646 )
* Change pull description text
* move duplicated code into helper function
7 years ago
Morlinest
a04718a2a6
Remove repo unit index ( #2621 )
* Remove repo unit index
* Fix sqlite
7 years ago
Morlinest
1ad902d529
Fix implementation of repo Home func ( #2601 )
* Fix implementation of repo Home func
* Make fixture changes for testing
7 years ago