Lauris BH
fb80265b52
Fix so that user can still fork his own repository to owned organizations ( #2699 ) ( #2707 )
...
* 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
2017-10-15 19:40:33 +03:00
David Schneiderbauer
6fae585d28
fix .netrc authentication ( #2700 ) ( #2708 )
...
* provide both possible authentication solutions
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-10-15 18:50:28 +03:00
David Schneiderbauer
d1cec5ecfa
fix panic on gogs webhook creation ( #2675 ) ( #2676 )
...
* 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>
2017-10-09 08:58:49 +08:00
David Schneiderbauer
e38e502e20
Fix deletion of unprotected branches ( #2630 )
...
* fix deletion of unprotected branches
* fmt fix
* changed internal protected branch api
* fix lint error
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-10-02 23:23:41 +03:00
Lunny Xiao
03ff7687e0
fix go get subpackage bug ( #2584 ) ( #2589 )
...
* fix go get subpackage bug
* merge the duplicated funtions
2017-09-23 16:58:17 +03:00
Lauris BH
e232c49b10
Sync releases table with tags on push and for mirrors ( #2459 ) ( #2554 )
...
* Sync releases table with tags on push and for mirrors
* Code style fixes
* Fix api to return only releases
* Optimize release creation and update
Minimize posibility of race conditions
* Fix release lower tag name updating
* handle tag reference update by addionally comparing commit id
2017-09-21 01:08:22 +03:00
Lauris BH
25e71ad41e
Fix adding branch as protected to not allow pushing to it ( #2556 )
...
* Fix adding branch as protected to not allow pushing to it
* Fix can_push value to false in protected_branch (#2560 )
* Fix integration test
2017-09-20 20:14:09 +03:00
Jonas Franz
91788e0200
Restricting access to fork functioanlity to users with Code access ( #2542 )
...
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2017-09-19 01:12:29 +02:00
Lunny Xiao
1cbe502cc2
fix duplicated feed ( #2370 )
2017-08-28 19:16:25 +02:00
Lunny Xiao
0938a2dca3
Fix missing collabrative repos ( #2367 ) ( #2382 )
...
* fix missing collabrative repos
* fix bug of collabrative
* fix SQL quotes
2017-08-25 10:25:37 +08:00
Bwko
1a5fe4326f
Add collaborative repositories to the dashboard ( #2205 )
...
* Add collaborative repositories to the dashboard
Remove some unused code from the Dashboard func
* fix some bug and some refactor
* fix tests
2017-08-23 09:30:54 +08:00
Antoine GIRARD
fd8e8a421a
Improve swagger doc ( #2274 )
...
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
2017-08-21 14:13:47 +03:00
Sandro Santilli
2c3a229a3c
Add OpenID configuration in install page ( #2276 )
2017-08-19 17:34:49 +02:00
David Schneiderbauer
5707ad3bb7
Add AppURL without trailing slash to TOTP issuer parameter to prevent conflicting accounts on multiple gitea installations ( #2335 )
...
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-08-19 09:39:43 +08:00
Morlinest
e08d1fcc15
Fix variable name typo ( #2327 )
2017-08-18 14:21:46 +03:00
Michael Kuhn
934dd41fa6
Make SHOW_USER_EMAIL also apply to profiles ( #2258 )
...
The e-mail address is currently only hidden from the explore page.
2017-08-17 17:08:03 +08:00
Ethan Koenig
7907786040
Trigger sync webhooks on UI commit ( #2302 )
...
* Trigger sync webhooks on UI commit
* Also fix UI upload/delete
2017-08-17 15:22:08 +08:00
Morlinest
951fb572a7
Fix and improve dashboard repo UI ( #2285 )
...
* Fix and improve dashboard repo UI
* Change order of scripts loading
* Remove "mirror" tab
* Remove single tab panel for "org user"
* Add localization strings
* Create vue component and change event for search
* Add "mirrors" filter
2017-08-17 09:31:34 +08:00
Ethan Koenig
29f3a6e492
Fix rendering of external links ( #2292 )
2017-08-13 19:30:27 -03:00
Lunny Xiao
f960e19c59
Only update needed columns when update user ( #2296 )
...
* only update needed columns when update user
* fix missing update_unix column
2017-08-12 22:18:44 +08:00
Ethan Koenig
7e0654bd9e
Fix counts on issues dashboard ( #2215 )
...
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
2017-08-03 13:09:16 +08:00
Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
2017-08-02 11:46:54 +03:00
Bwko
1193627014
Fix Commits nil pointer dereference ( #2203 )
2017-07-31 09:23:10 +08:00
Florian / sinnlosername
27c2dcf60e
Fixed robots.txt 404 error ( #2226 )
...
* Update routes.go
* Update routes.go
2017-07-30 22:32:10 +08:00
Ethan Koenig
49df677c47
Check for access in /repositories/:id ( #2227 )
...
* Check for access in /repositories/:id
* Integration test
2017-07-30 09:13:33 +08:00
Lunny Xiao
04c4028aea
fix some bug
2017-07-28 13:49:36 +08:00
Ethan Koenig
fd45a032a7
Fix bare-repo bugs ( #2199 )
...
* Fix bare-repo bugs
* Integration tests
* Unused import
2017-07-27 12:23:38 +03:00
Moritz Heiber
7e12aac61c
Only allow token authentication with 2FA enabled ( #2184 )
...
* Don't allow for plain username/password authentication when 2FA is enabled
* Removed debugging statement
* Don't assume a token belongs to a given user, handle two-factor errors properly
* Simplified user/token matching, refactored error handling for two-factor authentication
* Change authentication response to avoid bruteforcing
* Add TODO item as a comment for changing the response for security purposes
2017-07-26 15:33:16 +08:00
Bwko
8f171210b9
Revert "Add ability to fork your own repos ( #761 )" ( #2193 )
2017-07-26 15:17:38 +08:00
Lauris BH
f33e6ae09e
Remove unit types commits and settings ( #2161 )
...
* Remove unit types commits and settings
* Can not limit units in administrator teams
* Limit changing units only to teams with read and write access mode
* Small code optimization
2017-07-17 10:04:43 +08:00
Christian Weiske
c4ccf16c43
Fix OpenID registration route ( #2160 )
...
Fixes #2101
2017-07-13 23:58:53 +03:00
Aaron Walker
6a3c03762a
API: support '/orgs/:org/repos' ( #2047 )
...
* API: support '/orgs/:org/repos'
2017-07-13 13:14:15 +02:00
Ethan Koenig
93a1de4842
Fix repo API bug ( #2133 )
...
Don't require token when not necessary
2017-07-12 03:23:41 +02:00
Ethan Koenig
8f1d62ad3b
Fix GET /users/:username/repos endpoint ( #2125 )
2017-07-10 14:07:39 +03:00
Antoine GIRARD
30787e48f2
Improve org error handling ( #2117 )
...
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
2017-07-06 21:30:19 +08:00
Lauris BH
f189ccd2d6
Fix git hooks update to receive required arguments. Fixes #2090 ( #2095 )
...
* Changed migration calling so that migrations can use models package
2017-07-02 21:50:57 +08:00
Ethan Koenig
f99489d5c5
Fix API for branches with slashes ( #2096 )
2017-07-02 10:03:57 +08:00
Lauris BH
783b1967e2
Fix release display and correct paging ( #2080 )
2017-06-29 23:11:38 +08:00
iszla
3f9016430f
Pagination on releases page ( #2035 )
...
* Added count to GetReleasesByRepoID so pagination will work
* Separated it out to a new function, can then also leave the API part unaffected
* Remove extra whitespace added in untouched function
* Added comment and corrected name in error handler
* Account for if the user is owner or not in the count
* Also check if repo is draft
* revert back to the correct count in the ReleasesToDisplay loop
* Fixed lint error regarding else with return statement
* Use Cond struct instead of string, corrected name in error handler
* Removed unused return variable names
2017-06-28 22:47:00 +08:00
Shuanglei Tao
d389ed25a5
Fix: http: multiple response.WriteHeader calls
( #2038 )
...
We can't change the http status code here, because the response has been written.
2017-06-28 14:08:47 +08:00
Lauris BH
32fc44aa83
Make time diff translatable ( #2057 )
2017-06-28 13:43:28 +08:00
Jonas Franz
441986a473
Fix "Dashboard shows deleted comments" ( #1995 )
2017-06-25 20:20:29 +02:00
Ethan Koenig
735676267e
Integration tests for issues API ( #2059 )
2017-06-25 22:51:07 +08:00
Ethan Koenig
2559a34b97
Load label ID in NewLabels ( #2045 )
2017-06-25 14:15:09 +08:00
Ethan Koenig
3ffedeab03
Fix bug in issue labels API ( #2048 )
2017-06-25 07:52:51 +08:00
Kim "BKC" Carlbäcker
cc6b3f60c6
Fix displaying commits and files of PR created from now deleted fork ( #2023 )
...
Fix displaying commits and files of PR created from now deleted fork
2017-06-22 19:40:47 +02:00
Lunny Xiao
228247511a
repo/editor: fix breadcrumb path cuts parent dirs ( #3859 ) ( #2032 )
2017-06-22 23:30:47 +08:00
Lunny Xiao
75b5be236a
Display config file path on admin panel ( #2030 )
2017-06-22 08:21:56 -05:00
Lunny Xiao
d71fad2ab7
Fix #2001 and fix issue comments hidden ( #2016 )
...
* revert #2001 and fix issue comments hidden
* fix #2001
* fix import
* improve comment type
* reduce unnecessary join
* fix comment on FindCommentsOptions
2017-06-21 09:00:44 +08:00
Lauris BH
0a5dc640a1
Make branch deletion URL more like GitHub's, fixes #1397 ( #1994 )
...
* Make branch deletion URL more like GitHub's, fixes #1397
* Add PR branch deletion integration test
* Do not allow deleting protected branch
* Change http error code to 403 if user has no write rights to repository
* Add check to not panic if forked repository has alrady been deleted
2017-06-21 09:00:03 +08:00