]> source.dussan.org Git - gitea.git/log
gitea.git
6 years agoAdd raw blob endpoint to get objects by SHA ID (#5334)
Peter Hoffmann [Sun, 18 Nov 2018 18:45:40 +0000 (19:45 +0100)]
Add raw blob endpoint to get objects by SHA ID (#5334)

* Add raw blob endpoint

This should make it possible to download raw blobs directly from
/:repo/:username/raw/blob/:sha1 URLs.

* fix: Make it work

* As an SHA-ID is no path getRefNameFromPath can't be used to verify
file specifying parameter
* added relevant change in go-gitea/git #132

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
* Update Gopkg.lock

Can't update all vendors due to errors

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
* style: Add Gitea copyright header

* feat: Added integration test for /repo/u/r/raw/blob

* fix: correct year in copyright header

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 18 Nov 2018 18:27:47 +0000 (18:27 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoMigration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341)
Florian Eitel [Sun, 18 Nov 2018 18:25:32 +0000 (19:25 +0100)]
Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341)

* Remove field from migration to support upgrades from older version

That will ensure the field does not get queried in the Select if it does
not exist yet:

```
[I] [SQL] SELECT "id", "repo_id", "index", "poster_id", "name", "content", "milestone_id", "priority", "assignee_id", "is_closed", "is_pull", "num_comments", "ref", "deadline_unix", "created_unix", "updated_unix
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: column "ref" does not exist
```

see #5318

* Skip remove stale watcher migration if not required

Otherwise the migration will fail if executed from a older database
version without multiple IssueWatch feature.

```
2018/11/11 23:51:14 [I] [SQL] SELECT DISTINCT "issue_watch"."user_id", "issue"."repo_id" FROM "issue_watch" INNER JOIN issue ON issue_watch.issue_id = issue.id WHERE (issue_watch.is_watching = $1) LIMIT 50 []int
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: relation "issue_watch" does not exist
```

see #5318

6 years agoSet ACL on uploads (#5344)
techknowlogick [Fri, 16 Nov 2018 16:44:13 +0000 (11:44 -0500)]
Set ACL on uploads (#5344)

To support https://github.com/go-gitea/infrastructure/pull/39

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 16 Nov 2018 11:14:34 +0000 (11:14 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoadded the ability to set labels on the "edit pull request" api (#5347)
Lucien Kerl [Fri, 16 Nov 2018 11:12:44 +0000 (12:12 +0100)]
added the ability to set labels on the "edit pull request" api (#5347)

Signed-off-by: Lucien Kerl <lucien.kerl@wuerth-it.com>
6 years agoImplement pasting image from clipboard for browsers that supports that (#5317)
Lauris BH [Thu, 15 Nov 2018 01:20:13 +0000 (03:20 +0200)]
Implement pasting image from clipboard for browsers that supports that (#5317)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 15 Nov 2018 01:01:52 +0000 (01:01 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoBlock registration based on email domain (#5157)
Lanre Adelowo [Thu, 15 Nov 2018 01:00:04 +0000 (02:00 +0100)]
Block registration based on email domain (#5157)

* implement email domain whitelist

6 years agoRemove x/net/context vendor by using std package (#5202)
Antoine GIRARD [Sat, 10 Nov 2018 23:55:36 +0000 (00:55 +0100)]
Remove x/net/context vendor by using std package (#5202)

* Update dep github.com/markbates/goth

* Update dep github.com/blevesearch/bleve

* Update dep golang.org/x/oauth2

* Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026

* Update dep golang.org/x/oauth2

6 years agoFix create team, update team missing units (#5188)
Lunny Xiao [Sat, 10 Nov 2018 19:45:32 +0000 (03:45 +0800)]
Fix create team, update team missing units (#5188)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 9 Nov 2018 12:07:58 +0000 (12:07 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix file edit change preview functionality (#5300)
Lauris BH [Fri, 9 Nov 2018 12:05:43 +0000 (14:05 +0200)]
Fix file edit change preview functionality (#5300)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 9 Nov 2018 06:18:32 +0000 (06:18 +0000)]
[skip ci] Updated translations via Crowdin

6 years agofix bug when users have serval teams with different units on different repositories...
Lunny Xiao [Fri, 9 Nov 2018 06:16:52 +0000 (14:16 +0800)]
fix bug when users have serval teams with different units on different repositories (#5307)

6 years agoAdd option to disable automatic mirror syncing. (#5242)
Jonas Bröms [Thu, 8 Nov 2018 23:58:02 +0000 (00:58 +0100)]
Add option to disable automatic mirror syncing. (#5242)

Setting the interval to 0 will disable to automatic syncing.

6 years agoFix U2F if gitea is configured in subpath (#5302)
Lauris BH [Thu, 8 Nov 2018 22:46:44 +0000 (00:46 +0200)]
Fix U2F if gitea is configured in subpath (#5302)

6 years agoFix typo in configuration (#5295)
Patrick Lühne [Thu, 8 Nov 2018 15:16:07 +0000 (16:16 +0100)]
Fix typo in configuration (#5295)

Signed-off-by: Patrick Lühne <patrick@luehne.de>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 7 Nov 2018 04:50:40 +0000 (04:50 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoRemove maxlines option for file logger (#5282)
Lauris BH [Wed, 7 Nov 2018 04:48:53 +0000 (06:48 +0200)]
Remove maxlines option for file logger (#5282)

6 years agoPrometheus endpoint (#5256)
Stanislav [Mon, 5 Nov 2018 03:20:00 +0000 (06:20 +0300)]
Prometheus endpoint (#5256)

* Add prometheus collector and route

* dep ensure -add github.com/prometheus/client_golang/prometheus

* dep ensure -update github.com/golang/protobuf

* add metrics to reserved usernames

* add comment head in metrics package

* fix style imports

* add metrics settings

* add bearer token check

* mapping metrics configs

* fix lint

* update config cheat sheet

* update conf sample, typo fix

6 years agoClean up docs (#5274)
techknowlogick [Mon, 5 Nov 2018 02:21:56 +0000 (21:21 -0500)]
Clean up docs (#5274)

* make docs more clear

* make docs more clear

* Add analytics

* Update customizing-gitea.en-us.md

* Update app.ini.sample

6 years ago1.6.0-rc2 changelog (#5276)
techknowlogick [Mon, 5 Nov 2018 01:01:15 +0000 (20:01 -0500)]
1.6.0-rc2 changelog (#5276)

6 years agoAdd zeripath to maintainers (#5273)
zeripath [Sun, 4 Nov 2018 15:41:23 +0000 (15:41 +0000)]
Add zeripath to maintainers (#5273)

6 years agoFix #5226 by adding CSRF checking to api reqToken and add CSRF to the POST header...
zeripath [Sun, 4 Nov 2018 01:15:55 +0000 (01:15 +0000)]
Fix #5226 by adding CSRF checking to api reqToken and add CSRF to the POST header for deadline (#5250)

* Add CSRF checking to reqToken and place CSRF in the post for deadline creation

Fixes #5226, #5249

* /api/v1/admin/users routes should have reqToken middleware

6 years agoUpdate gitignore list (#5258)
Antoine GIRARD [Sat, 3 Nov 2018 22:06:09 +0000 (23:06 +0100)]
Update gitignore list (#5258)

* update gitignore

* Handle symlink in tar

* Add some logs

6 years agoFixed wrong api request url for instances running in subfolders (#5247)
kolaente [Sat, 3 Nov 2018 12:20:02 +0000 (13:20 +0100)]
Fixed wrong api request url for instances running in subfolders (#5247)

6 years agoFixed heatmap not working in mssql (#5248)
kolaente [Thu, 1 Nov 2018 18:12:17 +0000 (19:12 +0100)]
Fixed heatmap not working in mssql (#5248)

6 years agoUpdate golang version in Dockerfile (#5246)
Stanislav [Thu, 1 Nov 2018 16:43:17 +0000 (19:43 +0300)]
Update golang version in Dockerfile (#5246)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 1 Nov 2018 13:42:58 +0000 (13:42 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoCreate AuthorizedKeysCommand (#5236)
zeripath [Thu, 1 Nov 2018 13:41:07 +0000 (13:41 +0000)]
Create AuthorizedKeysCommand (#5236)

6 years agoKeys API changes (#4960)
zeripath [Thu, 1 Nov 2018 03:40:49 +0000 (03:40 +0000)]
Keys API changes (#4960)

* Add private information to the deploy keys api

This commit adds more information to the deploy keys to allow for back
reference in to the main keys list. It also adds information about the
repository that the key is referring to.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add private information to the user keys API

This adjusts the keys API to give out private information to user keys if
the current user is the owner or an admin.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add ability to search keys by fingerprint

This commit adds the functionality to search ssh-keys by fingerprint of
the ssh-key. Deploy keys per repository can also be searched. There is
no current clear API point to allow search of all deploy keys by
fingerprint or keyID.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add integration test

6 years agofix: Accept web-command cli flags if web-command is commited (#5200)
Peter Hoffmann [Thu, 1 Nov 2018 00:36:41 +0000 (01:36 +0100)]
fix: Accept web-command cli flags if web-command is commited (#5200)

* fix: Accept web-command cli flags if web-command is commited

* Added flags of default cmd CmdWeb to app-wide flags
* If command *is* specified app-wide flags are ignored

Resolves: #5065
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
* Removed style breaking newline

* broken windows need to be fixed
* provides requested change

6 years agoUpdate API link in README (#5241)
Jonas Bröms [Thu, 1 Nov 2018 00:18:28 +0000 (01:18 +0100)]
Update API link in README (#5241)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 31 Oct 2018 20:58:56 +0000 (20:58 +0000)]
[skip ci] Updated translations via Crowdin

6 years agofix compatibility heatmap with mysql 8 (#5232)
Stanislav [Wed, 31 Oct 2018 20:56:32 +0000 (23:56 +0300)]
fix compatibility heatmap with mysql 8 (#5232)

6 years agoAdd command for migrating database (#4954)
Robert Ștefan [Wed, 31 Oct 2018 03:14:42 +0000 (05:14 +0200)]
Add command for migrating database (#4954)

6 years agoAdd changelog for 1.5.3 release (#5227)
Lauris BH [Wed, 31 Oct 2018 02:13:14 +0000 (04:13 +0200)]
Add changelog for 1.5.3 release (#5227)

6 years agoFix issue where ecdsa and other key types are not synced from LDAP (#5092) (#5094)
Jerry Jacobs [Wed, 31 Oct 2018 00:08:30 +0000 (01:08 +0100)]
Fix issue where ecdsa and other key types are not synced from LDAP (#5092) (#5094)

* Fix issue where ecdsa and other key types are not synced from LDAP authentication provider fixes #5092

* integrations/auth_ldap_test.go: Add Hermes Conrad new ecdsa-sha2-nistp256 publickey fingerprint

* integrations/auth_ldap_test.go: Use ssh-keygen -lf <filename> -E sha256

6 years agoFix markdown image with link (#4675)
L.E.R [Tue, 30 Oct 2018 22:26:28 +0000 (17:26 -0500)]
Fix markdown image with link (#4675)

* Fix markdown image with link

* Add gitea copyright notice

* add a test for markdown image with link

* remove svg related variables

6 years agoThis commit will reduce join star, repo_topic, topic tables on repo search, so that...
Lunny Xiao [Tue, 30 Oct 2018 21:48:37 +0000 (05:48 +0800)]
This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql (#5136)

* This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql

* fix tests

6 years agoGenerate random password (#5023)
Lanre Adelowo [Tue, 30 Oct 2018 21:34:25 +0000 (22:34 +0100)]
Generate random password (#5023)

* add random-password flag

* run make fmt

* add length cli flag rather than use a default value

6 years agoonly chown directories during docker setup if necessary. Fix #4425 (#5064)
Fabian Braun [Tue, 30 Oct 2018 15:41:41 +0000 (16:41 +0100)]
only chown directories during docker setup if necessary. Fix #4425 (#5064)

Signed-off-by: Fabian Braun <fabian-braun@mailbox.org>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 30 Oct 2018 15:20:31 +0000 (15:20 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoAdd AutoHead functionality. (#5186)
zeripath [Tue, 30 Oct 2018 15:08:49 +0000 (15:08 +0000)]
Add AutoHead functionality. (#5186)

Fixes #5153

6 years agoPass link prefixes to external markup parsers (#5201)
Nicolas Lenz [Tue, 30 Oct 2018 14:34:12 +0000 (15:34 +0100)]
Pass link prefixes to external markup parsers (#5201)

* Pass environment variables for URL prefixes to external markup parser

Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
* Document external markup link prefix environment variables

Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
* Run format on link prefix changes

Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
6 years agofix data race on migrate repository (#5224)
Lunny Xiao [Tue, 30 Oct 2018 14:06:01 +0000 (22:06 +0800)]
fix data race on migrate repository (#5224)

6 years agoremove unused db init on commands serv, update, hooks (#5225)
Lunny Xiao [Tue, 30 Oct 2018 10:41:25 +0000 (18:41 +0800)]
remove unused db init on commands serv, update, hooks (#5225)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 30 Oct 2018 06:22:29 +0000 (06:22 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoMake gitea serv use api/internal (#4886)
Antoine GIRARD [Tue, 30 Oct 2018 06:20:13 +0000 (07:20 +0100)]
Make gitea serv use api/internal (#4886)

* Start to move to internal/private

* Add GetPublicKeyByID

* Add HasDeployKey

* Add private.UpdateDeployKeyUpdated

* Add private.GetUserByKeyID

* Add private.AccessLevel

* Add private.CheckUnitUser

* Fix mistakes I made

* Some cleaning + moving code to separate files

* Fix error handling

* Remove useless error handling for setup

* lint: fix comment on exported func

* fix copyright header

* Fix order of args

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 30 Oct 2018 03:08:04 +0000 (03:08 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoServe audio files using HTML5 audio tag (#5221)
Jonas Bröms [Tue, 30 Oct 2018 02:17:26 +0000 (03:17 +0100)]
Serve audio files using HTML5 audio tag (#5221)

* Serve audio files using HTML5 audio tag

* Correct copy paste error

6 years agofix sqlite lock (#5210)
Lunny Xiao [Tue, 30 Oct 2018 01:21:18 +0000 (09:21 +0800)]
fix sqlite lock (#5210)

6 years agoFix emojis not showing in commit messages (#5168)
James Anderson [Mon, 29 Oct 2018 21:00:35 +0000 (17:00 -0400)]
Fix emojis not showing in commit messages (#5168)

Fixes #5150

Signed-off-by: James Anderson <james@jamesa.me>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 29 Oct 2018 13:50:58 +0000 (13:50 +0000)]
[skip ci] Updated translations via Crowdin

6 years agofix sqlite and mssql lock (#5214)
Lunny Xiao [Mon, 29 Oct 2018 13:48:37 +0000 (21:48 +0800)]
fix sqlite and mssql lock (#5214)

6 years agoKill testing processes if the test takes too long (#5174)
Mura Li [Mon, 29 Oct 2018 01:54:13 +0000 (09:54 +0800)]
Kill testing processes if the test takes too long (#5174)

When timeout, Send ABRT signal to print backtraces for diagnosis.
The timeout value is set to 1200s (20mins) for now.

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 29 Oct 2018 01:31:15 +0000 (01:31 +0000)]
[skip ci] Updated translations via Crowdin

6 years agok8s deployment (#5046)
BetaCat [Mon, 29 Oct 2018 01:28:06 +0000 (09:28 +0800)]
k8s deployment (#5046)

6 years agoUX of link account (Step 1) (#5006)
AJ ONeal [Sun, 28 Oct 2018 22:46:16 +0000 (16:46 -0600)]
UX of link account (Step 1) (#5006)

* Show either sign up OR sign in

* disambiguate fresh start from adding recovery options

* use tabs to switch between account link flows

* add active to tab body as well

* changes as per discussion

* handle specific error; fix missing err typo

6 years agofix showing pull request link when delete a branch (#5166)
Lunny Xiao [Sun, 28 Oct 2018 22:15:25 +0000 (06:15 +0800)]
fix showing pull request link when delete a branch (#5166)

6 years agofix: Add secret to all webhook's payload where it has been missing (#5199)
Peter Hoffmann [Sun, 28 Oct 2018 22:03:02 +0000 (23:03 +0100)]
fix: Add secret to all webhook's payload where it has been missing (#5199)

* fix: Add secret to all webhook's payload where it has been missing

affects webhooks for:
* Delete
* Fork
* IssueComment
* Release

6 years agoFix to 3819 - Filtering issues by tags on main screen issues (#3824)
Rodrigo Villablanca Vásquez [Sun, 28 Oct 2018 06:55:01 +0000 (03:55 -0300)]
Fix to 3819 - Filtering issues by tags on main screen issues (#3824)

* Fix to 3819

* Changes suggested

* Empty line removed

* Fix error: non-name opts.Labels on left side of :=

6 years agoUpdate with-docker.en-us.md (#5203)
Paul Strickland [Sun, 28 Oct 2018 03:18:55 +0000 (03:18 +0000)]
Update with-docker.en-us.md (#5203)

Improve grammar in second paragraph.

6 years agofix sqlite lock (#5184)
Lunny Xiao [Sat, 27 Oct 2018 14:45:24 +0000 (22:45 +0800)]
fix sqlite lock (#5184)

* fix sqlite lock

* fix bug

Co-Authored-By: lunny <xiaolunwen@gmail.com>
* fix bug

Co-Authored-By: lunny <xiaolunwen@gmail.com>
6 years agoUpdate vendor/golang.org/x/sys (#5059)
Antonio Huete Jimenez [Fri, 26 Oct 2018 23:18:40 +0000 (01:18 +0200)]
Update vendor/golang.org/x/sys (#5059)

6 years agoUpdate x/net (#5169)
Antoine GIRARD [Fri, 26 Oct 2018 23:05:56 +0000 (01:05 +0200)]
Update x/net (#5169)

6 years agoUpdate TRANSLATORS (#5194)
briolantonio [Fri, 26 Oct 2018 17:37:36 +0000 (19:37 +0200)]
Update TRANSLATORS (#5194)

Hi,
I'm the guy who translated gitea during June in Italian.
I would like to have my name added to the translators list.
I translated nearly a thousand and a half words.
Thank you.

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 26 Oct 2018 09:40:17 +0000 (09:40 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix race on updatesize (#5190)
Lunny Xiao [Fri, 26 Oct 2018 09:37:57 +0000 (17:37 +0800)]
Fix race on updatesize (#5190)

* fix race on updatesize

* fix more repoPath

6 years agoUpdate go-macaron/session to latest mast to fix RCE-bug (#5177)
Kim "BKC" Carlbäcker [Thu, 25 Oct 2018 11:53:39 +0000 (13:53 +0200)]
Update go-macaron/session to latest mast to fix RCE-bug (#5177)

6 years agoFix sqlite lock (#5176)
Lunny Xiao [Thu, 25 Oct 2018 10:55:16 +0000 (18:55 +0800)]
Fix sqlite lock (#5176)

* fix sqlite lock

* fix sqlite lock on getUnitType

6 years agoDisable sqlite test (#5178)
Mura Li [Thu, 25 Oct 2018 10:37:46 +0000 (18:37 +0800)]
Disable sqlite test (#5178)

For #5172

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 25 Oct 2018 08:52:17 +0000 (08:52 +0000)]
[skip ci] Updated translations via Crowdin

6 years agorevert #5146 (#5167)
Antoine GIRARD [Thu, 25 Oct 2018 08:31:26 +0000 (10:31 +0200)]
revert #5146 (#5167)

6 years agoSet heatmap color range configurable (#5165)
Antoine GIRARD [Wed, 24 Oct 2018 14:38:04 +0000 (16:38 +0200)]
Set heatmap color range configurable (#5165)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 24 Oct 2018 13:17:43 +0000 (13:17 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix JSON result of empty array (#5154)
Antoine GIRARD [Wed, 24 Oct 2018 13:17:21 +0000 (15:17 +0200)]
Fix JSON result of empty array (#5154)

6 years agoUpdate vendor/github.com/mattn/go-sqlite3 (#5162)
Mura Li [Wed, 24 Oct 2018 08:18:51 +0000 (16:18 +0800)]
Update vendor/github.com/mattn/go-sqlite3 (#5162)

To fix build failure on Windows/386

6 years agoUpdate the docs for sqlite_unlock_notify (#5145)
Mura Li [Tue, 23 Oct 2018 16:33:51 +0000 (00:33 +0800)]
Update the docs for sqlite_unlock_notify (#5145)

6 years agoUpdate outdated Go toolchain version for .drone.yml (#5146)
Mura Li [Tue, 23 Oct 2018 16:08:05 +0000 (00:08 +0800)]
Update outdated Go toolchain version for .drone.yml (#5146)

6 years agoUpdate build tags for sqlite_unlock_notify (#5144)
Mura Li [Tue, 23 Oct 2018 11:47:59 +0000 (19:47 +0800)]
Update build tags for sqlite_unlock_notify (#5144)

6 years agoUpdate vendor/go-sqlite3 (#5133)
Mura Li [Tue, 23 Oct 2018 05:28:10 +0000 (13:28 +0800)]
Update vendor/go-sqlite3 (#5133)

6 years agoUser action heatmap (#5131)
kolaente [Tue, 23 Oct 2018 02:57:42 +0000 (04:57 +0200)]
User action heatmap (#5131)

* Added basic heatmap data

* Added extra case for sqlite

* Built basic heatmap into user profile

* Get contribution data from api & styling

* Fixed lint & added extra group by statements for all database types

* generated swagger spec

* generated swagger spec

* generated swagger spec

* fixed swagger spec

* fmt

* Added tests

* Added setting to enable/disable user heatmap

* Added locale for loading text

* Removed UseTiDB

* Updated librejs & moment.js

* Fixed import order

* Fixed heatmap in postgresql

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-Authored-By: kolaente <konrad@kola-entertainments.de>
* Added copyright header

* Fixed a bug to show the heatmap for the actual user instead of the currently logged in

* Added integration test for heatmaps

* Added a heatmap on the dashboard

* Fixed timestamp parsing

* Hide heatmap on mobile

* optimized postgresql group by query

* Improved sqlite group by statement

6 years agoAdd comment replies (#5104)
Jonas Franz [Mon, 22 Oct 2018 20:13:35 +0000 (22:13 +0200)]
Add comment replies (#5104)

* Add comment replies

* Replace reviewID with review.ID

6 years agoIncrease the retry limit to 20 times and the interval to 200ms (#5134)
Mura Li [Sun, 21 Oct 2018 14:09:17 +0000 (22:09 +0800)]
Increase the retry limit to 20 times and the interval to 200ms (#5134)

The original settings has less tolerance and would fail on some
environments.

6 years agoFix Swagger JSON autogeneration issues. (#4845)
zeripath [Sun, 21 Oct 2018 03:40:42 +0000 (04:40 +0100)]
Fix Swagger JSON autogeneration issues. (#4845)

* Fix Swagger JSON.

Remove unnecessary schema references for the forbidden and empty responses

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix swagger API for CreateAccessToken

* Fix admin create org swagger

* Fix swagger for adminCreateRepo

* More swagger fixes

Set int64 format for those which are int64
Some more form fixes

* Fix swagger description of GET /repos/{owner}/{repo}/pulls

6 years agoFix SQL quoting (#5117)
Filip Navara [Sat, 20 Oct 2018 22:19:21 +0000 (00:19 +0200)]
Fix SQL quoting (#5117)

`show` is keyword in MySQL and has to be quoted to reference a column name. Use grave accents (ASCII code 96) for quoting to match rest of the source code. It's non-standard SQL, but it's supported by SQLite and MySQL.

Signed-off-by: Filip Navara <navara@emclient.com>
6 years agoAdd must-change-password flag to cli for creating a user (#4955)
Lanre Adelowo [Sat, 20 Oct 2018 22:05:01 +0000 (23:05 +0100)]
Add must-change-password flag to cli for creating a user (#4955)

* add support for an admin to force a user to change his/her password from thee cli

* use BoolFlag instead

* default to true

* simplify by removing unnneccessary if/else

6 years agoRemove check for negative length (#5120)
Oleg Kovalov [Sat, 20 Oct 2018 21:25:14 +0000 (23:25 +0200)]
Remove check for negative length (#5120)

6 years agoRetry test-fixtures loading in case of transaction rollback (#5125)
Mura Li [Sat, 20 Oct 2018 20:48:33 +0000 (04:48 +0800)]
Retry test-fixtures loading in case of transaction rollback (#5125)

6 years agofix fading menu in arc-green theme (#5128)
glaszig [Sat, 20 Oct 2018 20:31:27 +0000 (22:31 +0200)]
fix fading menu in arc-green theme (#5128)

* fix fading menu in arc-green theme

the menu faded white because it missed proper styling.
only visible on viewports narrower than 1200px.

* Generate minimized css

* compiled arc-green.less to apply changes from 76e4f9a58

6 years agoAdd LFS timeout issue to troubleshooting doc (#5129)
James Ravenscroft [Sat, 20 Oct 2018 16:49:04 +0000 (17:49 +0100)]
Add LFS timeout issue to troubleshooting doc (#5129)

6 years agoGive user a link to create PR after push (#4716)
Julien Tant [Sat, 20 Oct 2018 06:59:06 +0000 (08:59 +0200)]
Give user a link to create PR after push (#4716)

* Give user a link to create PR after push

* Forks now create PR in the base repository + make sure PR creation is allowed

* fix code style

6 years agoUse named const instead of a raw string (#5115)
Oleg Kovalov [Sat, 20 Oct 2018 02:25:38 +0000 (04:25 +0200)]
Use named const instead of a raw string (#5115)

6 years agoUse type switch (#5122)
Oleg Kovalov [Fri, 19 Oct 2018 18:54:26 +0000 (20:54 +0200)]
Use type switch (#5122)

6 years agoRemove duplicated if bodies (#5121)
Oleg Kovalov [Fri, 19 Oct 2018 16:49:36 +0000 (18:49 +0200)]
Remove duplicated if bodies (#5121)

6 years agoFix deadlock when sqlite (#5118)
Lunny Xiao [Fri, 19 Oct 2018 16:36:42 +0000 (00:36 +0800)]
Fix deadlock when sqlite (#5118)

* fix deadlock when sqlite

* fix clonelink deadlock on sqlite

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 19 Oct 2018 13:38:43 +0000 (13:38 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoMake switch more clear (#5119)
Oleg Kovalov [Fri, 19 Oct 2018 13:36:41 +0000 (15:36 +0200)]
Make switch more clear (#5119)