]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agoimprove the git-scm url's in docs and sample.ini (#5467)
Roman [Tue, 4 Dec 2018 22:40:42 +0000 (23:40 +0100)]
improve the git-scm url's in docs and sample.ini (#5467)

* remove old git-version from git-scm url in app.ini

The url includes the version of git, which is not required to view the
page. If you open the page without the version you get the current
version and it's possible to switch the used version.

Signed-off-by: Roman <romaaan.git@gmail.com>
* docs: mention the git-scm url for git configs

Signed-off-by: Roman <romaaan.git@gmail.com>
5 years agorefactor: replace lint to revive (#5422)
Bo-Yi Wu [Mon, 3 Dec 2018 14:28:46 +0000 (22:28 +0800)]
refactor: replace lint to revive (#5422)

* refactor: replace lint to revive

* make changes.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
5 years agoensure that the `closed_at` is set for closed (#5449)
romankl [Sun, 2 Dec 2018 20:43:01 +0000 (21:43 +0100)]
ensure that the `closed_at` is set for closed (#5449)

right now the `closed_at` field for json responses is not filled during
the `APIIssue` creation for api responses.

For a closed issue you get a result like:
```json
"state":"open","comments":0,"created_at":"2018-11-29T16:39:24+01:00",
"updated_at":"2018-11-30T10:49:19+01:00","closed_at":null,
"due_date":null,"pull_request":null}
```
which has no information about the closing date. (which exists in the
db and ui)
with this PR the result changes to this:

```json
:null,"assignee":null,"assignees":null,
"state":"closed",
"comments":0,"created_at":"2018-11-29T16:43:05+01:00",
"updated_at":"2018-12-02T19:17:05+01:00",
"closed_at":"2018-12-02T19:17:05+01:00",
"due_date":null,"pull_request":null}
```

fixes: https://github.com/go-gitea/gitea/issues/5446
Signed-off-by: Roman <romaaan.git@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 2 Dec 2018 16:10:08 +0000 (16:10 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoadmin should be able to delete repos even if he is not a member of the organization...
Lanre Adelowo [Sun, 2 Dec 2018 16:08:33 +0000 (17:08 +0100)]
admin should be able to delete repos even if he is not a member of the organization (#5443)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 1 Dec 2018 06:07:46 +0000 (06:07 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemoving Labels via EditPullRequest API (#5348)
Lucien Kerl [Sat, 1 Dec 2018 06:05:57 +0000 (07:05 +0100)]
Removing Labels via EditPullRequest API (#5348)

* added the ability to provide an empty array at the EditPullRequests API to remove all labels

Signed-off-by: Lucien Kerl <lucien.kerl@wuerth-it.com>
* Update pull.go

5 years agoword-break the WebHook url to prevent a ui-break (#5432)
romankl [Fri, 30 Nov 2018 14:52:05 +0000 (15:52 +0100)]
word-break the WebHook url to prevent a ui-break (#5432)

right now, the url is displayed with an anchor tag with no classes. If
the url is really really long, the url will break out of the containing
div and (depending on the url length) the browser shows the horizontal
scrollbar.
This pr makes use of the already existing css class `dont-break-out`
which gives all the anchor the necessary properties to prevent the
break.
Another solution could be to introduce some classes like
`text text-break-word`, but that would duplicate the `dont-break-out`
class just for text elements that use the `text` class.

fixes: https://github.com/go-gitea/gitea/issues/5416
Signed-off-by: Roman <romaaan.git@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 30 Nov 2018 13:01:54 +0000 (13:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix repository deletion when there is large number of issues in it (#5426)
Lunny Xiao [Fri, 30 Nov 2018 12:59:12 +0000 (20:59 +0800)]
Fix repository deletion when there is large number of issues in it (#5426)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 30 Nov 2018 08:51:59 +0000 (08:51 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow to add organization members as collaborators on organization owned repositories...
Lanre Adelowo [Fri, 30 Nov 2018 08:49:55 +0000 (09:49 +0100)]
Allow to add organization members as collaborators on organization owned repositories (#4748)

repository... Fixes #4507

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 29 Nov 2018 16:49:36 +0000 (16:49 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemove the required class from optional ssh port in installation page (#5428)
romankl [Thu, 29 Nov 2018 16:47:57 +0000 (17:47 +0100)]
Remove the required class from optional ssh port in installation page (#5428)

the ssh port is optional during the installation process. The
translations even mention that it is optional and can be blank. Right
now it has the `required` class which creates the red `*` behind the
field caption - used for required fields.
If you leave it blank, the SSH option is disabled
(not touched by this PR)

Signed-off-by: Roman <romaaan.git@gmail.com>
5 years agoUpgrade alpine to 3.8 (#5423)
techknowlogick [Thu, 29 Nov 2018 02:33:35 +0000 (21:33 -0500)]
Upgrade alpine to 3.8 (#5423)

5 years agoMilestone issues and pull requests (#5293)
Lunny Xiao [Thu, 29 Nov 2018 01:46:30 +0000 (09:46 +0800)]
Milestone issues and pull requests (#5293)

* add milestone issues and pulls page instead of redirecting issues page

* add milestone when creating issue from milestone page

* refactor to merge similiar codes as a new function issues

* remove milestone info on milestone issues list

* fix missing params

5 years agoGit-Trees API (#5403)
Kasi Reddy [Wed, 28 Nov 2018 21:17:09 +0000 (21:17 +0000)]
Git-Trees API (#5403)

* Git-Trees API

* update vendor'd libs

* added comments to exported function and formatted.

* make fmt

* update per @lafirks feedback

5 years agoFix heatmap colors for Chrome/Safari (#5421)
Lauris BH [Wed, 28 Nov 2018 16:22:46 +0000 (18:22 +0200)]
Fix heatmap colors for Chrome/Safari (#5421)

5 years agoRestrict permission check on repositories and fix some problems (#5314)
Lunny Xiao [Wed, 28 Nov 2018 11:26:14 +0000 (19:26 +0800)]
Restrict permission check on repositories and fix some problems (#5314)

* fix units permission problems

* fix some bugs and merge LoadUnits to repoAssignment

* refactor permission struct and add some copyright heads

* remove unused codes

* fix routes units check

* improve permission check

* add unit tests for permission

* fix typo

* fix tests

* fix some routes

* fix api permission check

* improve permission check

* fix some permission check

* fix tests

* fix tests

* improve some permission check

* fix some permission check

* refactor AccessLevel

* fix bug

* fix tests

* fix tests

* fix tests

* fix AccessLevel

* rename CanAccess

* fix tests

* fix comment

* fix bug

* add missing unit for test repos

* fix bug

* rename some functions

* fix routes check

5 years agoExplicitly disable Git credential helper (#5367)
Michael Kuhn [Wed, 28 Nov 2018 07:00:25 +0000 (08:00 +0100)]
Explicitly disable Git credential helper (#5367)

* Explicitly disable Git credential helper

If the user running Gitea has configured a credential helper, Git
credentials might leak out of Gitea.

There are two problems with credential helpers when combined with Gitea:

1. Credentials entered by a user when doing a migration or setting up a
   mirror will end up in the credential store. In the worst case, this
   is the plain text file ~/.git-credentials.
2. Credentials in the credential store will be used for migrations and
   mirrors by all users. For example, if user A sets up a mirror, their
   credentials will be stored. If user B later sets up a mirror from the
   same host and does not enter any credentials, user A's credentials
   will be used.

This PR prepends -c credential.helper= to all Git commands to clear the
list of helpers. This requires at least Git version 2.9, as previous
versions will try to load an empty helper instead. For more details, see
https://github.com/git/git/commit/24321375cda79f141be72d1a842e930df6f41725

* Update git module

5 years agoImplement git refs API for listing references (branches, tags and other) (#5354)
Lauris BH [Tue, 27 Nov 2018 21:52:20 +0000 (23:52 +0200)]
Implement git refs API for listing references (branches, tags and other) (#5354)

* Inital routes to git refs api

* Git refs API implementation

* Update swagger

* Fix copyright

* Make swagger happy add basic test

* Fix test

* Fix test again :)

5 years agoCreate Progressive Web App (#4730)
SohnyBohny [Tue, 27 Nov 2018 15:18:26 +0000 (16:18 +0100)]
Create Progressive Web App (#4730)

* Create manifest and serviceworker

* Create templates and add AppSubUrl

* Add JSRenderer

* fix ctx type

* Add JSRenderer to static.go

* Complete adding {{AppSubUrl}}

* Add more fonts to urlsToCache

* Add 512px and 192px icons

* Hardcode font MD5

* Default theme doesn't have a specific CSS file

5 years agoRefactor heatmap to vue component (#5401)
Lauris BH [Tue, 27 Nov 2018 09:36:54 +0000 (11:36 +0200)]
Refactor heatmap to vue component (#5401)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 26 Nov 2018 19:24:15 +0000 (19:24 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoExplicitly decide whether to use TLS in mailer's configuration (#5024)
Lanre Adelowo [Mon, 26 Nov 2018 19:21:42 +0000 (20:21 +0100)]
Explicitly decide whether to  use TLS in mailer's configuration (#5024)

* explicitly decide on using TLS for mail connections

* explicitly decide on using TLS for mail connections

* keep compatibility

5 years agofix password variable shadowing (#5405)
Lanre Adelowo [Mon, 26 Nov 2018 15:00:38 +0000 (16:00 +0100)]
fix password variable shadowing (#5405)

5 years agoshow only opened milestones on issues page milestone filter (#5051)
Lanre Adelowo [Mon, 26 Nov 2018 08:45:42 +0000 (09:45 +0100)]
show only opened milestones on issues page milestone filter (#5051)

* show only opened milestones on issues page milestone filter

* update Godoc

* update Godoc everywhere

* update swagger

* use false instead of 0

* Add seccond ordering by ID for milestones where no deadline is set

5 years agoNotes on upgrading docker installation (#5395)
Ryan Halliday [Mon, 26 Nov 2018 01:51:02 +0000 (14:51 +1300)]
Notes on upgrading docker installation (#5395)

* Notes on upgrading docker installation

Basis from [gogs/gogs](https://github.com/gogs/gogs/blob/master/docker/README.md)

* Feedback from @sapk to use docker-compose only

5 years agoFix dependent issue searching when gitea is run in subpath (#5392)
Lauris BH [Sun, 25 Nov 2018 17:25:55 +0000 (19:25 +0200)]
Fix dependent issue searching when gitea is run in subpath (#5392)

5 years agoFix typos in configuration (#5398)
Patrick Lühne [Sun, 25 Nov 2018 16:29:44 +0000 (17:29 +0100)]
Fix typos in configuration (#5398)

5 years agoDon't force a password change for the admin user when creating an account via cli...
Lanre Adelowo [Sun, 25 Nov 2018 07:42:24 +0000 (08:42 +0100)]
Don't force a password change for the admin user when creating an account via cli (#5391)

* don't force a password change for the admin user

* don't totally dicard -must-change-password flag if creating the first (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update

5 years agoAPI: '/orgs/:org/repos': return private repos with read access (#5310) (#3829) (...
Daniel Balko [Fri, 23 Nov 2018 21:23:27 +0000 (22:23 +0100)]
API: '/orgs/:org/repos': return private repos with read access (#5310) (#3829) (#5383)

Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
5 years ago[website] file rendering through external binaries (#5387)
Juan Pablo Santos Rodríguez [Fri, 23 Nov 2018 15:07:08 +0000 (16:07 +0100)]
[website] file rendering through external binaries (#5387)

* #3758: [doc] file rendering through external binaries

* fix subsections markup

* include proposed changes from PR review

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 23 Nov 2018 07:16:27 +0000 (07:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoBackport 1.6.0 changelog to master (#5384)
techknowlogick [Fri, 23 Nov 2018 07:14:34 +0000 (02:14 -0500)]
Backport 1.6.0 changelog to master (#5384)

5 years agoShow review summary in pull requests (#5132)
kolaente [Thu, 22 Nov 2018 13:17:36 +0000 (14:17 +0100)]
Show review summary in pull requests (#5132)

5 years agosupport envs on external render commands (#5278)
Lunny Xiao [Tue, 20 Nov 2018 22:11:21 +0000 (06:11 +0800)]
support envs on external render commands (#5278)

5 years agoadd api for user to create org (#5268)
Lunny Xiao [Tue, 20 Nov 2018 17:31:30 +0000 (01:31 +0800)]
add api for user to create org (#5268)

* add api for user to create org

* remove unused blank line on the swagger file end

* fix create and add test

* fix tests

* fix routes of create org API

* fix bug

* add copyright heads

5 years agodont' send assign webhooks when creating issue (#5365)
Lunny Xiao [Tue, 20 Nov 2018 17:10:18 +0000 (01:10 +0800)]
dont' send assign webhooks when creating issue (#5365)

5 years agoapp.ini.sample: add ENABLE_USER_HEATMAP default config (#5362)
Antoine GIRARD [Tue, 20 Nov 2018 09:54:09 +0000 (10:54 +0100)]
app.ini.sample: add ENABLE_USER_HEATMAP default config (#5362)

Doc: https://github.com/go-gitea/gitea/blob/b97af15de67b04fd259bd70a4abbc873f12e9491/docs/content/doc/advanced/config-cheat-sheet.en-us.md#service-service

5 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

5 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

5 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

5 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

5 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

5 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>
5 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)

5 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

5 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

5 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

5 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)

5 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

5 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)

5 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

5 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)

5 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.

5 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)

5 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>
5 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

5 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)

5 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

5 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

5 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)

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

5 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

5 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

5 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)

5 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)

5 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)

5 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

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

5 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

5 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

5 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)

5 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

5 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)

5 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)

5 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)

5 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

5 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

5 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

5 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

5 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>
5 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

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

Fixes #5153

5 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>
5 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)

5 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)

5 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

5 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

5 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

5 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

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

5 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>
5 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

5 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)

5 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.

5 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

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

5 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