]>
source.dussan.org Git - gitea.git/log
Sandro Santilli [Thu, 24 Aug 2017 05:54:06 +0000 (07:54 +0200)]
Fix integration test after librejs location change (#2374)
Fixes #2373
Michael Lustfield [Thu, 24 Aug 2017 05:52:42 +0000 (00:52 -0500)]
Move themes to plugin directory. Fixes #2372 (#2375)
Lunny Xiao [Wed, 23 Aug 2017 15:17:25 +0000 (23:17 +0800)]
update translation from crowdin (#2368)
Michael Lustfield [Wed, 23 Aug 2017 14:58:05 +0000 (09:58 -0500)]
Moved vendored js/css into `public/vendor` and documented sources (#1484) (#2241)
* Cleaning up public/ and documenting js/css libs.
This commit mostly addresses #1484 by moving vendor'ed plugins into a
vendor/ directory and documenting their upstream source and license in
vendor/librejs.html.
This also proves gitea is using only open source js/css libraries which
helps toward reaching #1524.
* Removing unused css file.
The version of this file in use is located at:
vendor/plugins/highlight/github.css
* Cleaned up librejs.html and added javascript header
A SafeJS function was added to templates/helper.go to allow keeping
comments inside of javascript.
A javascript comment was added in the header of templates/base/head.tmpl
to mark all non-inline source as free.
The librejs.html file was updated to meet the current librejs spec. I
have now verified that the librejs plugin detects most of the scripts
included in gitea and suspect the non-free detections are the result of
a bug in the plugin. I believe this commit is enough to meet the C0.0
requirement of #1534.
* Updating SafeJS function per lint suggestion
* Added VERSIONS file, per request
Lunny Xiao [Wed, 23 Aug 2017 09:53:35 +0000 (17:53 +0800)]
Add more test for login links and fix a bug on action retrieve (#2361)
* add more test for login links and fix a bug on action retrieve
David Schneiderbauer [Wed, 23 Aug 2017 07:30:33 +0000 (09:30 +0200)]
Add integration tests for signin (#2363)
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Ethan Koenig [Wed, 23 Aug 2017 05:51:58 +0000 (22:51 -0700)]
Fix SQL condition bug in GetFeeds(..) (#2360)
Lunny Xiao [Wed, 23 Aug 2017 04:08:20 +0000 (12:08 +0800)]
fix bug on create repo link on dashboard (#2359)
Bo-Yi Wu [Wed, 23 Aug 2017 01:56:57 +0000 (20:56 -0500)]
Revert "Changes for latest DroneCI (#2355)" (#2358)
This reverts commit
faf4b503b24d33a2a0f455d26bb782345ab8e0c9 .
Bwko [Wed, 23 Aug 2017 01:30:54 +0000 (03:30 +0200)]
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
Thomas Boerger [Wed, 23 Aug 2017 01:08:30 +0000 (03:08 +0200)]
Changes for latest DroneCI (#2355)
Morlinest [Tue, 22 Aug 2017 13:00:34 +0000 (15:00 +0200)]
Remove (almost) server side data rendering from repo-search component (#2317)
* Rename some shorthands
* Remove (almost) server side data rendering from repo-search component template
Lunny Xiao [Tue, 22 Aug 2017 11:39:52 +0000 (19:39 +0800)]
update latest xorm version to vendor (#2353)
Silke [Mon, 21 Aug 2017 15:35:08 +0000 (17:35 +0200)]
Add badge and link to the Matrix room (#2348)
Antoine GIRARD [Mon, 21 Aug 2017 11:13:47 +0000 (13:13 +0200)]
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
Sandro Santilli [Mon, 21 Aug 2017 06:47:23 +0000 (08:47 +0200)]
Add INTERNAL_TOKEN to integration .ini file (#2346)
Avoids override of source file upon running `make test-pgsql`
Long story: settings.NewContext *adds* an INTERNAL_TOKEN if none
is found; the other ini files under integration/ all have an
INTERNAL_TOKEN
Morlinest [Sun, 20 Aug 2017 19:48:41 +0000 (21:48 +0200)]
Fix order of elements in dashboard html (#2344)
Sandro Santilli [Sun, 20 Aug 2017 03:09:24 +0000 (05:09 +0200)]
Remove integration test executables on `make clean` (#2340)
Sandro Santilli [Sat, 19 Aug 2017 15:34:49 +0000 (17:34 +0200)]
Add OpenID configuration in install page (#2276)
Ethan Koenig [Sat, 19 Aug 2017 12:32:18 +0000 (05:32 -0700)]
No error log entries for repo 404 (#2200)
David Schneiderbauer [Sat, 19 Aug 2017 01:39:43 +0000 (03:39 +0200)]
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>
Morlinest [Sat, 19 Aug 2017 01:37:48 +0000 (03:37 +0200)]
Fix repo-search template errors for go1.7 (#2336)
Morlinest [Fri, 18 Aug 2017 11:21:46 +0000 (13:21 +0200)]
Fix variable name typo (#2327)
Lauris BH [Fri, 18 Aug 2017 06:56:04 +0000 (09:56 +0300)]
Add missing forks key for dashboard repository component (#2325)
Missing key that is used in #2285
Morlinest [Thu, 17 Aug 2017 16:04:39 +0000 (18:04 +0200)]
Make use of Vue more universal (#2318)
Lunny Xiao [Thu, 17 Aug 2017 15:52:28 +0000 (23:52 +0800)]
Add public links check (#2323)
* add public links check
* more links for query parameters
Lunny Xiao [Thu, 17 Aug 2017 12:20:21 +0000 (20:20 +0800)]
fix template error on explore repos (#2319)
Michael Kuhn [Thu, 17 Aug 2017 09:08:03 +0000 (11:08 +0200)]
Make SHOW_USER_EMAIL also apply to profiles (#2258)
The e-mail address is currently only hidden from the explore page.
Ethan Koenig [Thu, 17 Aug 2017 07:22:08 +0000 (00:22 -0700)]
Trigger sync webhooks on UI commit (#2302)
* Trigger sync webhooks on UI commit
* Also fix UI upload/delete
Morlinest [Thu, 17 Aug 2017 01:31:34 +0000 (03:31 +0200)]
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
Bo-Yi Wu [Wed, 16 Aug 2017 00:46:41 +0000 (08:46 +0800)]
refactor(Makefile): allow overriding default go program (#2310)
Ethan Koenig [Mon, 14 Aug 2017 13:37:41 +0000 (06:37 -0700)]
Revert to upstream ini dependency (#2304)
silverwind [Sun, 13 Aug 2017 22:49:38 +0000 (00:49 +0200)]
More tweaks to repo top panel (#2267)
* More tweaks to repo top panel
* undo hiding of compare button on master
* attempt to fix ci issue
* another ci attempt
Ethan Koenig [Sun, 13 Aug 2017 22:30:28 +0000 (15:30 -0700)]
Fix rendering of external links (#2292)
Pontus Leitzler [Sun, 13 Aug 2017 06:18:05 +0000 (08:18 +0200)]
Use /dev/urandom to create random password (#2298)
* Make sure generated password is random
Use /dev/urandom to get a 32 char password
* Make sure generated password is random
Use /dev/urandom to generate 32 char password
* Make sure generated password is random
Lunny Xiao [Sat, 12 Aug 2017 14:18:44 +0000 (22:18 +0800)]
Only update needed columns when update user (#2296)
* only update needed columns when update user
* fix missing update_unix column
Lunny Xiao [Sat, 12 Aug 2017 02:15:30 +0000 (10:15 +0800)]
fix 500 error when view an issue which's milestone deleted (#2297)
Lunny Xiao [Thu, 10 Aug 2017 23:51:25 +0000 (07:51 +0800)]
fix webhook link
Patrick G [Wed, 9 Aug 2017 04:13:33 +0000 (00:13 -0400)]
Comment help text for issues (#2281)
Ethan Koenig [Mon, 7 Aug 2017 01:42:48 +0000 (18:42 -0700)]
Temporarily patch go-ini/ini with fork (#2255)
silverwind [Sun, 6 Aug 2017 03:13:20 +0000 (05:13 +0200)]
File path tweaks in UI (#2264)
Michael Kuhn [Sat, 5 Aug 2017 21:52:19 +0000 (23:52 +0200)]
Make short link pattern greedy (#2259)
Multiple links on the same line are currently not recognized correctly.
Bo-Yi Wu [Sat, 5 Aug 2017 09:15:20 +0000 (17:15 +0800)]
update drone sig file. (#2262)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu [Fri, 4 Aug 2017 14:08:50 +0000 (22:08 +0800)]
ignore coverage steps. (#2257)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
G [Fri, 4 Aug 2017 04:42:51 +0000 (00:42 -0400)]
Convert xorm literal queries to method calls (#2253)
Lauris BH [Thu, 3 Aug 2017 15:32:13 +0000 (18:32 +0300)]
Fix internal requests when gitea listens to unix socket or only external IP (#2234)
* Fix internal requests when gitea listens to unix socket or only external IP
* When Gitea is set to listen using FastCGI use AppURL for LocalURL
Lauris BH [Thu, 3 Aug 2017 13:48:36 +0000 (16:48 +0300)]
update code.gitea.io/git in vendor to fix #2245 (#2250)
Lunny Xiao [Thu, 3 Aug 2017 08:15:39 +0000 (16:15 +0800)]
add changelog of release v1.1.3 (#2252)
Ethan Koenig [Thu, 3 Aug 2017 05:09:16 +0000 (22:09 -0700)]
Fix counts on issues dashboard (#2215)
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
Ethan Koenig [Wed, 2 Aug 2017 08:46:54 +0000 (01:46 -0700)]
EnableUnit() -> UnitEnabled() (#2242)
Christoph Handel [Tue, 1 Aug 2017 18:59:22 +0000 (20:59 +0200)]
Fix git version check with four digits (1.8.3.1) (#2236)
G [Tue, 1 Aug 2017 05:47:31 +0000 (01:47 -0400)]
Replace calls to xorm UseBool with Where (#2237)
silverwind [Tue, 1 Aug 2017 02:27:17 +0000 (04:27 +0200)]
Prevent selection of diff line numbers (#2240)
Antoine GIRARD [Mon, 31 Jul 2017 01:29:50 +0000 (03:29 +0200)]
go get github.com/wadey/gocovmerge when needed (#2235)
Bwko [Mon, 31 Jul 2017 01:23:10 +0000 (03:23 +0200)]
Fix Commits nil pointer dereference (#2203)
silverwind [Sun, 30 Jul 2017 20:07:23 +0000 (22:07 +0200)]
Improve docs for PROTOCOL and HTTP_ADDR options (#2231)
Fixes: #2230
silverwind [Sun, 30 Jul 2017 20:04:01 +0000 (22:04 +0200)]
Generate small and large logos at 4x resolution (#2233)
To support High-DPI displays, generate images at 4 times their displayed
resolution, which should be enough to support all current devices
according to https://material.io/devices/.
Florian / sinnlosername [Sun, 30 Jul 2017 14:32:10 +0000 (16:32 +0200)]
Fixed robots.txt 404 error (#2226)
* Update routes.go
* Update routes.go
Ethan Koenig [Sun, 30 Jul 2017 01:13:33 +0000 (18:13 -0700)]
Check for access in /repositories/:id (#2227)
* Check for access in /repositories/:id
* Integration test
Lunny Xiao [Sat, 29 Jul 2017 09:22:10 +0000 (17:22 +0800)]
remove unused variable on makefile (#2225)
Lauris BH [Fri, 28 Jul 2017 05:51:20 +0000 (08:51 +0300)]
Add task to generate images from SVG and change to new logo (#2194)
* Add makefile task to generate images from SVG and change to new logo
* use absolute path on generate-images
Lunny Xiao [Wed, 26 Jul 2017 09:01:11 +0000 (17:01 +0800)]
fix some bug
Ethan Koenig [Thu, 27 Jul 2017 09:23:38 +0000 (02:23 -0700)]
Fix bare-repo bugs (#2199)
* Fix bare-repo bugs
* Integration tests
* Unused import
Ethan Koenig [Thu, 27 Jul 2017 06:12:56 +0000 (23:12 -0700)]
Fix hooks for integration repo (#2216)
Ethan Koenig [Thu, 27 Jul 2017 01:20:38 +0000 (18:20 -0700)]
Fix issue updated_unix bug (#2204)
Ethan Koenig [Wed, 26 Jul 2017 09:30:47 +0000 (02:30 -0700)]
Fix unclosed session bug (#2214)
Moritz Heiber [Wed, 26 Jul 2017 07:33:16 +0000 (09:33 +0200)]
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
Lauris BH [Wed, 26 Jul 2017 07:27:30 +0000 (10:27 +0300)]
Fix compiling without sqlite and gcc (#2177)
Tao Wang [Wed, 26 Jul 2017 07:21:23 +0000 (17:21 +1000)]
Use sqlite3 database as default for Docker image (#2182)
Signed-off-by: Tao Wang <twang2218@gmail.com>
Bwko [Wed, 26 Jul 2017 07:17:38 +0000 (09:17 +0200)]
Revert "Add ability to fork your own repos (#761)" (#2193)
Ethan Koenig [Wed, 26 Jul 2017 07:16:45 +0000 (00:16 -0700)]
Fix PR nil-dereference bug (#2195)
* Fix PR nil-dereference bug
* Revert to original error format
Lauris BH [Thu, 20 Jul 2017 03:15:10 +0000 (06:15 +0300)]
Fix key usage time update if the key is used in parallel for multiple operations (#2185)
Lauris BH [Wed, 19 Jul 2017 01:36:37 +0000 (04:36 +0300)]
Fix profile update for non-local users (#2178)
Lauris BH [Mon, 17 Jul 2017 02:04:43 +0000 (05:04 +0300)]
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
Lauris BH [Sat, 15 Jul 2017 14:22:26 +0000 (17:22 +0300)]
Refactor vue delimeters to use es6 template delimeters (#2171)
Stefan Kalscheuer [Sat, 15 Jul 2017 14:21:51 +0000 (16:21 +0200)]
Only show SSH clone URL if signed in (#2169) (#2170)
* Add configuration flag SSH_EXPOSE_ANONYMOUS
If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.
* Default SSH exposure set to false
To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Add integration tests
* Hide clone button neither HTTP and SSH is enabled
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
Wiktor Żurawik [Sat, 15 Jul 2017 03:14:02 +0000 (05:14 +0200)]
Make compare button URL aware if current repo is a fork (#2162) (#2163)
* Make compare button URL aware if current repo is a fork (#2162)
* Optimize code
* To not change current behaviour check if signed in user has fork of base repository
* Fix to check only if signed user has forked repo otherwise it will still redirect to wrong page
bit [Fri, 14 Jul 2017 17:30:03 +0000 (20:30 +0300)]
Only show "No Description" to repo admins (#2167)
Only show note about missing description ("No Description") to repo admins, nobody else can change it.
Ethan Koenig [Thu, 13 Jul 2017 22:33:26 +0000 (18:33 -0400)]
More integration tests for comment API (#2156)
Christian Weiske [Thu, 13 Jul 2017 20:58:53 +0000 (22:58 +0200)]
Fix OpenID registration route (#2160)
Fixes #2101
Aaron Walker [Thu, 13 Jul 2017 11:14:15 +0000 (04:14 -0700)]
API: support '/orgs/:org/repos' (#2047)
* API: support '/orgs/:org/repos'
Bo-Yi Wu [Thu, 13 Jul 2017 11:09:29 +0000 (06:09 -0500)]
fix: replace tmp with TMPDIR. (#2152)
Lauris BH [Thu, 13 Jul 2017 03:35:47 +0000 (06:35 +0300)]
Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150)
Lauris BH [Thu, 13 Jul 2017 03:35:21 +0000 (06:35 +0300)]
Update code.gitea.io/git dependency (#2149)
Lauris BH [Thu, 13 Jul 2017 03:32:28 +0000 (06:32 +0300)]
Fix repository settings collobration list display (#2151)
Ethan Koenig [Wed, 12 Jul 2017 14:58:52 +0000 (10:58 -0400)]
Fix username rendering bug (#2122)
* Fix username rendering bug
* XSS integration test
* Migration to unescape user full names
Bo-Yi Wu [Wed, 12 Jul 2017 08:52:00 +0000 (03:52 -0500)]
fix typo (#2145)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu [Wed, 12 Jul 2017 02:28:57 +0000 (21:28 -0500)]
Add verify changed less-file step to Makefile (#1861)
Roy Marples [Wed, 12 Jul 2017 02:26:54 +0000 (03:26 +0100)]
Fix SHA1 hash linking (#2143)
This changes the regex to look for a hash from 7 to 40 characters,
to match the use of abbreviated hash lookups in both git and github.
The restriction of not being a pure number is also removed because
1234567 is now considered a valid abbreviated hash, as is
deadbeef .
A note has been added to the top of the code to state that the
literal regex match is fine, but no extra validation is currently
performed so some false positives are expected.
A future change could ensure that the hash exists in the repository
before rendering it as a link, although this might incur a slight
performance penalty.
Reverts part of commit
4a46613 and fixes #2053.
Patrick G [Wed, 12 Jul 2017 02:25:45 +0000 (22:25 -0400)]
Small grammar fixes (#2144)
Ethan Koenig [Wed, 12 Jul 2017 01:23:41 +0000 (21:23 -0400)]
Fix repo API bug (#2133)
Don't require token when not necessary
Bo-Yi Wu [Tue, 11 Jul 2017 07:16:18 +0000 (02:16 -0500)]
feat: upgrade drone docker image to support multi-stage build. (#1732)
* feat: upgrade drone docker image to support multi-stage build.
* update drone sig file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update drone sig file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Ethan Koenig [Mon, 10 Jul 2017 11:07:39 +0000 (07:07 -0400)]
Fix GET /users/:username/repos endpoint (#2125)
Roy Marples [Mon, 10 Jul 2017 01:48:46 +0000 (02:48 +0100)]
Use POSIX complaint ! operator in find (#2132)
* Use POSIX complaint ! operator in find
-not is a GNU extension and not all find(8) implementations
support it. It's just an alias for ! which is POSIX compliant.
Now gitea compiles on NetBSD at least.
* Revert change in vendor directory as requested
Lauris BH [Mon, 10 Jul 2017 01:46:06 +0000 (04:46 +0300)]
Missing signed commit display translation (#2134)
Ethan Koenig [Sun, 9 Jul 2017 02:07:29 +0000 (22:07 -0400)]
Cache session cookies in tests (#2128)
Ethan Koenig [Fri, 7 Jul 2017 19:52:30 +0000 (15:52 -0400)]
Remove unused files (#2124)
Ethan Koenig [Fri, 7 Jul 2017 19:36:47 +0000 (15:36 -0400)]
Less verbose integration tests (#2123)
* Helper functions for intergration test boilerplate
Andrey Nering [Fri, 7 Jul 2017 14:00:31 +0000 (11:00 -0300)]
Merge pull request #2119 from ethantkoenig/fix/wiki
Fix wiki preview links
Ethan Koenig [Thu, 6 Jul 2017 20:38:38 +0000 (16:38 -0400)]
Fix import order