]> source.dussan.org Git - gitea.git/log
gitea.git
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 24 Oct 2019 01:20:30 +0000 (01:20 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix 500 when getting user as unauthenticated user (#8653)
Monty Taylor [Thu, 24 Oct 2019 01:18:41 +0000 (10:18 +0900)]
Fix 500 when getting user as unauthenticated user (#8653)

When doing GET /api/v1/users/{user} as an unauthenticated user,
gitea throws a 500 because it's trying to dereference elements
from the context user. It wants to do this to see whether to
show the primary email and will do that if the logged in user
is admin or the user in question. However, if ctx.User is nil,
go gets really unhappy.

4 years agoUse AppSubUrl for more redirections (#8647)
zeripath [Wed, 23 Oct 2019 21:04:22 +0000 (22:04 +0100)]
Use AppSubUrl for more redirections (#8647)

Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection

4 years agoMake /users/{username}/repos list private repos the current user has access to (...
7FM [Wed, 23 Oct 2019 18:46:32 +0000 (20:46 +0200)]
Make /users/{username}/repos list private repos the current user has access to (#8621)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Oct 2019 17:58:51 +0000 (17:58 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoImprove OGP (#8637)
John Olheiser [Wed, 23 Oct 2019 17:54:13 +0000 (12:54 -0500)]
Improve OGP (#8637)

* Improve OGP
* Ensure Repo is loaded when checking Pull info

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoAdd 'Alt + click' feature to exclude labels (#8199)
jaqra [Wed, 23 Oct 2019 16:29:14 +0000 (19:29 +0300)]
Add 'Alt + click' feature to exclude labels (#8199)

Add 'Alt + click' and 'Alt +enter' feature to exclude particular labels on searching for issues.

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Oct 2019 15:37:47 +0000 (15:37 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoGraceful fixes (#8645)
zeripath [Wed, 23 Oct 2019 15:32:19 +0000 (16:32 +0100)]
Graceful fixes (#8645)

* Only attempt to kill parent once

* Apply suggestions from code review

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add waitgroup for running servers

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Oct 2019 14:39:37 +0000 (14:39 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoDocs: Added instructions for Docker fail2ban configuration. (#8642)
Nathaniel Sabanski [Wed, 23 Oct 2019 14:07:32 +0000 (07:07 -0700)]
Docs: Added instructions for Docker fail2ban configuration. (#8642)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Oct 2019 11:51:49 +0000 (11:51 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix extra columns from `label` table (#8633)
guillep2k [Wed, 23 Oct 2019 11:48:32 +0000 (08:48 -0300)]
Fix extra columns from `label` table (#8633)

* Fix extra fields from database

* Add migration to drop unneeded columns

* Fix lint

* Make sure the columns exist

4 years agoEnabling and disabling the commit button to prevent empty commits (web editor) (...
Lukas [Wed, 23 Oct 2019 00:29:33 +0000 (02:29 +0200)]
Enabling and disabling the commit button to prevent empty commits (web editor) (#8590)

* Enabling and disabling the commit button to prevent empty commits

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* The button won't get enabled if you change the commit message

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Fixes a spelling mistake for 'silent'

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
4 years agoAdd SubURL to redirect path (#8632)
John Olheiser [Tue, 22 Oct 2019 18:50:24 +0000 (13:50 -0500)]
Add SubURL to redirect path (#8632)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Oct 2019 12:39:06 +0000 (12:39 +0000)]
[skip ci] Updated translations via Crowdin

4 years ago[assets] configurable URL for static resources (#7911)
Jakob Ackermann [Tue, 22 Oct 2019 12:11:01 +0000 (14:11 +0200)]
[assets] configurable URL for static resources (#7911)

* static url

* add cors support for static resources

* [assets] work on the migration to configurable url for assets

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [misc] fix whitespace

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] fix the loading of the manifest.json

It is generated dynamically, and as such can not be served by the cdn.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Revert "add cors support for static resources"

This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] add the STATIC_URL_PREFIX option

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] migrate the url of a new asset to the static url prefix

REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
4 years agoCorrect some outdated statements in the contributing guidelines (#8612)
Lukas [Mon, 21 Oct 2019 23:45:53 +0000 (01:45 +0200)]
Correct some outdated statements in the contributing guidelines (#8612)

* More information for drone-cli in CONTRIBUTING.md

* Increases the version of drone-cli to 1.2.0
* Adds a note for the Docker Toolbox on Windows

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Fix the url for the blog repository (now on gitea.com)

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
4 years agoPrevent .code-view from overriding font on icon fonts (#8614)
zeripath [Mon, 21 Oct 2019 22:23:35 +0000 (23:23 +0100)]
Prevent .code-view from overriding font on icon fonts (#8614)

4 years agoExpose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528)
zeripath [Mon, 21 Oct 2019 21:20:47 +0000 (22:20 +0100)]
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528)

* Expose db.SetMaxOpenConns and allow other dbs to set their connection params
* Add note about port exhaustion

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Oct 2019 20:22:31 +0000 (20:22 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoUpdate heatmap fixtures to restore tests (#8615)
zeripath [Mon, 21 Oct 2019 20:19:53 +0000 (21:19 +0100)]
Update heatmap fixtures to restore tests (#8615)

* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Oct 2019 13:41:05 +0000 (13:41 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd id references on all events to allow linking to it (#8608)
David Svantesson [Mon, 21 Oct 2019 13:36:09 +0000 (15:36 +0200)]
Add id references on all events to allow linking to it (#8608)

4 years agofix emoji panel be removed bug in issue page, when the sub issue summit the duplicate...
yan [Mon, 21 Oct 2019 11:02:51 +0000 (19:02 +0800)]
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609)

4 years agoAllow Protected Branches to Whitelist Deploy Keys (#8483)
zeripath [Mon, 21 Oct 2019 08:21:45 +0000 (09:21 +0100)]
Allow Protected Branches to Whitelist Deploy Keys (#8483)

Add an option to protected branches to add writing deploy keys to the whitelist for pushing.

Please note this is technically a breaking change: previously if the owner of a repository was on the whitelist then any writing deploy key was effectively on the whitelist. This option will now need to be set if that is desired.

Closes #8472

Details:
* Allow Protected Branches to Whitelist Deploy Keys
* Add migration
* Ensure that IsDeployKey is set to false on the http pushes
* add not null default false

4 years agoEnsure that diff stats can scroll independently of the diff (#8581)
6543 [Mon, 21 Oct 2019 07:51:24 +0000 (09:51 +0200)]
Ensure that diff stats can scroll independently of the diff (#8581)

This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page.

Fixes #5532

Details:

* make diff-detail-box the main container
* move file diff at the same level as diff-stats
* make diff-view options sticy again
* make diff-stats scroll if to mouch
* rm useless css info
* less: mv diff-stats to own class
* use new css class
* cleanup less file
* diff-counter: margin-right: 15px;
* make CI work
* make numbers colorful
* add sign (-/+) to numbers

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Oct 2019 06:58:59 +0000 (06:58 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAllows external rendering of other filetypes 2 (#8300)
George Harvey [Mon, 21 Oct 2019 06:54:18 +0000 (07:54 +0100)]
Allows external rendering of other filetypes 2 (#8300)

* allow external rendering of other filetypes

fixes #4996 and #7614
allows rendering of non-tex files, or otherwise accounted for filetypes

* Moves flie-size check before read()

And performs gofmt -s

* Only reads if markType is detected

4 years agoEnsure default gpg settings not nil and found commits have reference to repo (#8604)
zeripath [Sun, 20 Oct 2019 22:26:36 +0000 (23:26 +0100)]
Ensure default gpg settings not nil and found commits have reference to repo (#8604)

* Ensure defaultGPGSettings not nil

* Ensure that coerced commits gain a reference to the repo

* Add warning if trying to get defaultgpgsetting on an unattached commit

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 20 Oct 2019 18:32:35 +0000 (18:32 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoBasic Design guidelines (describing different parts of the code) (#8601)
David Svantesson [Sun, 20 Oct 2019 18:31:07 +0000 (20:31 +0200)]
Basic Design guidelines (describing different parts of the code) (#8601)

* Design guidelines with description of different parts of code

* Better readability with code parts in bold.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 20 Oct 2019 11:44:44 +0000 (11:44 +0000)]
[skip ci] Updated translations via Crowdin

5 years agowebhook: set Content-Type for application/x-www-form-urlencoded (#8599)
Viktor Szakats [Sun, 20 Oct 2019 11:41:24 +0000 (13:41 +0200)]
webhook: set Content-Type for application/x-www-form-urlencoded (#8599)

This header is missing since switching http client from GiteaServer (`code.gitea.io/gitea/modules/httplib`) to Go-http-client/1.1 (`net.http`). The header [was added by default](https://github.com/go-gitea/gitea/blob/release/v1.8/modules/httplib/httplib.go#L301) by the former, but this is no longer true with `net.http`, so it needs to be done explicitly:

Ref: https://github.com/go-gitea/gitea/issues/7700

5 years agomove translation to crowdin (#8596)
6543 [Sun, 20 Oct 2019 09:06:53 +0000 (11:06 +0200)]
move translation to crowdin (#8596)

5 years agoImprove german translation of homepage (#8549)
Konrad Pozniak [Sun, 20 Oct 2019 05:39:35 +0000 (07:39 +0200)]
Improve german translation of homepage (#8549)

I'm a native speaker, it looks much better this way

5 years agoDisplay Gitea logo in Readme (#8592)
Antoine GIRARD [Sat, 19 Oct 2019 21:14:38 +0000 (23:14 +0200)]
Display Gitea logo in Readme (#8592)

* readme: add gitea logo

* Update README.md

* Update README.md

* Update README.md

5 years agoFix #8582 by handling empty repos (#8587)
Jonas Franz [Sat, 19 Oct 2019 15:38:49 +0000 (17:38 +0200)]
Fix #8582 by handling empty repos (#8587)

* Fix #8582 by handling empty repos

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years agoAdd setting to disable BASIC authentication (#8586)
zeripath [Sat, 19 Oct 2019 14:27:15 +0000 (15:27 +0100)]
Add setting to disable BASIC authentication (#8586)

Closes #8561.

5 years agoMove issue label operations to issue service package (#8553)
Lunny Xiao [Sat, 19 Oct 2019 09:48:29 +0000 (17:48 +0800)]
Move issue label operations to issue service package (#8553)

* Move issue label operations to issue service package

* fix test

* fix fmt

5 years agoFix template error on account page (#8562)
John Olheiser [Sat, 19 Oct 2019 09:01:33 +0000 (04:01 -0500)]
Fix template error on account page (#8562)

5 years agoImprove webhooks (#8583)
John Olheiser [Fri, 18 Oct 2019 22:42:04 +0000 (17:42 -0500)]
Improve webhooks (#8583)

* Improve webhooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update MSTeams and ReviewPayload comment

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add repo.FullName to comments

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoRemove arrows on numeric inputs (#8516)
Nicholas Smith [Fri, 18 Oct 2019 16:26:13 +0000 (11:26 -0500)]
Remove arrows on numeric inputs (#8516)

* Nothing needs the arrows for input, especially 2FA

* Moved into LESS

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Oct 2019 11:15:16 +0000 (11:15 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix bug on pull requests when transfer head repository (#8564)
Lunny Xiao [Fri, 18 Oct 2019 11:13:31 +0000 (19:13 +0800)]
Fix bug on pull requests when transfer head repository (#8564)

* fix bug on pull requests when transfer head repository

* add migration and fix lint

* fix tests and add a cache check on LoadBaseRepo

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Oct 2019 08:35:26 +0000 (08:35 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix review webhooks (#8570)
John Olheiser [Fri, 18 Oct 2019 08:33:19 +0000 (03:33 -0500)]
Fix review webhooks (#8570)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Oct 2019 07:00:14 +0000 (07:00 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow more than 255 characters for tokens in external_login_user table (#8554)
Wenxuan Zhao [Fri, 18 Oct 2019 06:58:36 +0000 (23:58 -0700)]
Allow more than 255 characters for tokens in external_login_user table (#8554)

Signed-off-by: Wenxuan Zhao <viz@linux.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 17 Oct 2019 23:53:45 +0000 (23:53 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix building from source docs to ref AppWorkPath (#8567)
zeripath [Thu, 17 Oct 2019 23:51:31 +0000 (00:51 +0100)]
Fix building from source docs to ref AppWorkPath (#8567)

The current source docs reference AppWorkDir instead of AppWorkPath

5 years agoUpgrade xorm to v0.8.0 (#8536)
Lunny Xiao [Thu, 17 Oct 2019 09:26:49 +0000 (17:26 +0800)]
Upgrade xorm to v0.8.0 (#8536)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 17 Oct 2019 02:10:15 +0000 (02:10 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow externalID to be UUID (#8551)
Wenxuan Zhao [Thu, 17 Oct 2019 02:06:28 +0000 (19:06 -0700)]
Allow externalID to be UUID (#8551)

Signed-off-by: Wenxuan Zhao <viz@linux.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 17 Oct 2019 00:17:55 +0000 (00:17 +0000)]
[skip ci] Updated translations via Crowdin

5 years agodon't ignore error message (#8550)
Antoine GIRARD [Thu, 17 Oct 2019 00:15:02 +0000 (02:15 +0200)]
don't ignore error message (#8550)

5 years agoAllow committing / adding empty files using the web ui (#8420) (#8532)
Lukas [Wed, 16 Oct 2019 19:28:41 +0000 (21:28 +0200)]
Allow committing / adding empty files using the web ui (#8420) (#8532)

* Allow committing / adding empty files from the web ui (#8420)

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Add a modal to confirm the commit of an empty file

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
5 years agoRestrict modules/graceful to non-windows build and shim the IsChild marker (#8537)
zeripath [Wed, 16 Oct 2019 15:43:44 +0000 (16:43 +0100)]
Restrict modules/graceful to non-windows build and shim the IsChild marker (#8537)

5 years agoSign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)
zeripath [Wed, 16 Oct 2019 13:42:42 +0000 (14:42 +0100)]
Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)

This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however.

## Features
- [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.)
- [x] Verify commits signed with the default gpg as valid
- [x] Signer, Committer and Author can all be different
    - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon.
- [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available
    - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg
    - [x] Try to match the default key with a user on gitea - this is done at verification time
- [x] Make things configurable?
    - app.ini configuration done
    - [x] when checking commits are signed need to check if they're actually verifiable too
- [x] Add documentation

I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.

5 years agoEnsure that GitRepo is set on Empty repositories (#8539)
zeripath [Wed, 16 Oct 2019 13:08:01 +0000 (14:08 +0100)]
Ensure that GitRepo is set on Empty repositories (#8539)

Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set.
This PR changes the context code to open the GitRepo.

Fixes #8538

5 years agoDoc added how to setup email (#8520)
8ctopus [Wed, 16 Oct 2019 11:34:20 +0000 (16:34 +0500)]
Doc added how to setup email (#8520)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 16 Oct 2019 10:17:24 +0000 (10:17 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove sync mirror actions to mirror service package (#8518)
Lunny Xiao [Wed, 16 Oct 2019 09:56:59 +0000 (17:56 +0800)]
Move sync mirror actions to mirror service package (#8518)

* move sync mirror actions to mirror service

* fix go.mod

* fix lint

* fix lint

5 years agoFix migrate mirror 500 bug (#8526)
Lunny Xiao [Wed, 16 Oct 2019 08:59:02 +0000 (16:59 +0800)]
Fix migrate mirror 500 bug (#8526)

5 years agoUpdate the provided gitea.service to mention socket activation (#8531)
zeripath [Wed, 16 Oct 2019 07:29:50 +0000 (08:29 +0100)]
Update the provided gitea.service to mention socket activation (#8531)

* Update the provided gitea.service since we have graceful restarting again

* Update contrib/systemd/gitea.service

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years agoAdd missed close in ServeBlobLFS (#8527)
zeripath [Wed, 16 Oct 2019 05:55:31 +0000 (06:55 +0100)]
Add missed close in ServeBlobLFS (#8527)

5 years agoFix password complexity regex for special characters (on master) (#8525)
guillep2k [Wed, 16 Oct 2019 03:09:58 +0000 (00:09 -0300)]
Fix password complexity regex for special characters (on master) (#8525)

* Fix extra space

* Fix regular expression

* Fix error template name

* Simplify check code, fix default values, add test

* Fix router tests

* Fix fmt

* Fix setting and lint

* Move cleaning up code to test, improve comments

* Tidy up variable declaration

5 years agoupgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)
Colin Arnott [Tue, 15 Oct 2019 21:24:16 +0000 (21:24 +0000)]
upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)

editorconfig-core-go made breaking api changes and has recently released
v2.1.1. This change consumes the new api and fixes up any breaking
references.

5 years agoupgrade gopkg.in/ini.v1 (#8500)
Colin Arnott [Tue, 15 Oct 2019 15:45:39 +0000 (15:45 +0000)]
upgrade gopkg.in/ini.v1 (#8500)

ini released v1.48.0 and deprecated the ini.AllCapsUnderscore symbol, as
such, during the upgrade we migrated to using ini.SnackCase.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 15 Oct 2019 13:42:26 +0000 (13:42 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRestore Graceful Restarting & Socket Activation (#7274)
zeripath [Tue, 15 Oct 2019 13:39:51 +0000 (14:39 +0100)]
Restore Graceful Restarting & Socket Activation (#7274)

* Prevent deadlock in indexer initialisation during graceful restart

* Move from gracehttp to our own service to add graceful ssh

* Add timeout for start of indexers and make hammer time configurable

* Fix issue with re-initialization in indexer during tests

* move the code to detect use of closed to graceful

* Handle logs gracefully - add a pid suffix just before restart

* Move to using a cond and a holder for indexers

* use time.Since

* Add some comments and attribution

* update modules.txt

* Use zero to disable timeout

* Move RestartProcess to its own file

* Add cleanup routine

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 15 Oct 2019 12:21:14 +0000 (12:21 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoEnable Uploading/Removing Attachments When Editing an Issue/Comment (#8426)
blueworrybear [Tue, 15 Oct 2019 12:19:32 +0000 (20:19 +0800)]
Enable Uploading/Removing Attachments When Editing an Issue/Comment (#8426)

5 years ago[UI] Pull Request Download diff Button (#8470)
6543 [Tue, 15 Oct 2019 10:44:36 +0000 (12:44 +0200)]
[UI] Pull Request Download diff Button (#8470)

* Add Diff Download to Compare List

* Add&Change Text for Diff Options

* move button to seperate template

* add drop down menue with options

* Update: Compare

update Gogs, BitBucket, RhodeCode and remove gitea issue link

Co-Authored-By: Lauris BH <lauris@nix.lv>
* remove last things from TESTing

5 years agoUpdate CodeMirror to version 5.49.0 (#8381)
oscar.lofwenhamn [Tue, 15 Oct 2019 08:40:42 +0000 (10:40 +0200)]
Update CodeMirror to version 5.49.0 (#8381)

* Update CodeMirror to version 5.49.0

* Update CodeMirror versions in librejs and VERSIONS

5 years agoUpdate app.ini.sample (#8498)
Benson Muite [Tue, 15 Oct 2019 07:14:58 +0000 (10:14 +0300)]
Update app.ini.sample (#8498)

* Update app.ini.sample

Give further information on hyperlink rendering in Markdown

* Update app.ini.sample

Follow feedback from @guillep2k for CUSTOM_URL in markdown to indicate http and https are always rendered as links.

* Update custom/conf/app.ini.sample

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update custom/conf/app.ini.sample

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
5 years agoMove clearlabels from models to issue service (#8326)
Lunny Xiao [Tue, 15 Oct 2019 05:03:05 +0000 (13:03 +0800)]
Move clearlabels from models to issue service (#8326)

* move clearlabels from models to issue service

* improve code

* Apply suggestions from code review

Co-Authored-By: zeripath <art27@cantab.net>
5 years agoMove AddTestPullRequestTask to pull service package from models (#8324)
Lunny Xiao [Tue, 15 Oct 2019 03:28:40 +0000 (11:28 +0800)]
Move AddTestPullRequestTask to pull service package from models (#8324)

* move AddTestPullRequestTask to pull service package from models

* fix fmt

5 years agoUpdate config-cheat-sheet.en-us.md (#8497)
Benson Muite [Tue, 15 Oct 2019 02:39:55 +0000 (05:39 +0300)]
Update config-cheat-sheet.en-us.md (#8497)

* Update config-cheat-sheet.en-us.md

Add more information on configuring URI hyperlink rendering for Markdown.

* Update config-cheat-sheet.en-us.md

Update description as suggested by @guillep2k

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

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years agoSupport inline rendering of CUSTOM_URL_SCHEMES (#8496)
guillep2k [Tue, 15 Oct 2019 01:31:09 +0000 (22:31 -0300)]
Support inline rendering of CUSTOM_URL_SCHEMES (#8496)

* Support inline rendering of CUSTOM_URL_SCHEMES

* Fix lint

* Add tests

* Fix lint

5 years agoRecalculate repository access only for specific user (#8481)
David Svantesson [Tue, 15 Oct 2019 00:55:21 +0000 (02:55 +0200)]
Recalculate repository access only for specific user (#8481)

* Recalculate repository access only for specific user

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Handle user repositories as well, and only add access if minimum mode

* Need to get repo owner to check if organization

5 years ago[Branch View] Add Included TAG (#8449)
6543 [Mon, 14 Oct 2019 22:40:17 +0000 (00:40 +0200)]
[Branch View] Add Included TAG (#8449)

* included message

* add property IsIncluded

* Add Orange Lable

5 years agoMake static resouces web browser cache time customized on app.ini (#8442)
Lunny Xiao [Mon, 14 Oct 2019 22:05:57 +0000 (06:05 +0800)]
Make static resouces web browser cache time customized on app.ini (#8442)

* make static resouces web browser cache time customized on app.ini

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

Co-Authored-By: zeripath <art27@cantab.net>
* Update custom/conf/app.ini.sample

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* fix docs

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 21:39:15 +0000 (21:39 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd pagination to commit graph page (#8360)
jaqra [Mon, 14 Oct 2019 21:38:35 +0000 (00:38 +0300)]
Add pagination to commit graph page (#8360)

Fixes #8308

5 years agoStarting v1.11.0 development v1.11.0-dev
Lauris BH [Mon, 14 Oct 2019 21:02:16 +0000 (00:02 +0300)]
Starting v1.11.0 development

5 years agoChangelog for 1.10.0-RC1 (#8510) v1.10.0-rc1
6543 [Mon, 14 Oct 2019 19:34:21 +0000 (21:34 +0200)]
Changelog for 1.10.0-RC1 (#8510)

* Changelog for 1.10.0
* clean up | remove TESTING and DOCS sction | short BUILD section

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-Authored-By: zeripath <art27@cantab.net>
5 years agoFix errors in create org UI regarding team access permission. (#8506)
David Svantesson [Mon, 14 Oct 2019 18:20:42 +0000 (20:20 +0200)]
Fix errors in create org UI regarding team access permission. (#8506)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 17:46:01 +0000 (17:46 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd nofollow to sign in links (#8509)
guillep2k [Mon, 14 Oct 2019 17:43:48 +0000 (14:43 -0300)]
Add nofollow to sign in links (#8509)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 15:45:33 +0000 (15:45 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoPassword Complexity Checks (#6230)
Maxim Tkachenko [Mon, 14 Oct 2019 15:24:26 +0000 (22:24 +0700)]
Password Complexity Checks  (#6230)

Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords.

Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com>
Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agofix bug on FindExternalUsersByProvider (#8504)
Lunny Xiao [Mon, 14 Oct 2019 07:22:46 +0000 (15:22 +0800)]
fix bug on FindExternalUsersByProvider (#8504)

5 years agoUpdate migrated repositories' issues/comments/prs poster id if user has a github...
Lunny Xiao [Mon, 14 Oct 2019 06:10:42 +0000 (14:10 +0800)]
Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751)

* update migrated issues/comments when login as github

* add get userid when migrating or login with github oauth2

* fix lint

* add migrations for repository service type

* fix build

* remove unnecessary dependencies on migrations

* add cron task to update migrations poster ids and fix posterid when migrating

* fix lint

* fix lint

* improve code

* fix lint

* improve code

* replace releases publish id to actual author id

* fix import

* fix bug

* fix lint

* fix rawdata definition

* fix some bugs

* fix error message

5 years agovendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)
Antoine GIRARD [Mon, 14 Oct 2019 00:38:15 +0000 (02:38 +0200)]
vendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)

5 years agoRewrite reference processing code in preparation for opening/closing from comment...
guillep2k [Sun, 13 Oct 2019 22:29:10 +0000 (19:29 -0300)]
Rewrite reference processing code in preparation for opening/closing from comment references (#8261)

* Add a markdown stripper for mentions and xrefs

* Improve comments

* Small code simplification

* Move reference code to modules/references

* Fix typo

* Make MarkdownStripper return [][]byte

* Implement preliminary keywords parsing

* Add FIXME comment

* Fix comment

* make fmt

* Fix permissions check

* Fix text assumptions

* Fix imports

* Fix lint, fmt

* Fix unused import

* Add missing export comment

* Bypass revive on implemented interface

* Move mdstripper into its own package

* Support alphanumeric patterns

* Refactor FindAllMentions

* Move mentions test to references

* Parse mentions from reference package

* Refactor code to implement renderizable references

* Fix typo

* Move patterns and tests to the references package

* Fix nil reference

* Preliminary rendering attempt of closing keywords

* Normalize names, comments, general tidy-up

* Add CSS style for action keywords

* Fix permission for admin and owner

* Fix golangci-lint

* Fix golangci-lint

5 years agoUpdate seek-help.zh-cn.md (#8488)
Benson Muite [Sun, 13 Oct 2019 21:36:09 +0000 (00:36 +0300)]
Update seek-help.zh-cn.md (#8488)

Update link to Mandarin help forum

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 20:23:11 +0000 (20:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate seek-help.en-us.md (#8487)
Benson Muite [Sun, 13 Oct 2019 20:07:30 +0000 (23:07 +0300)]
Update seek-help.en-us.md (#8487)

Update link to Mandarin help

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 16:31:19 +0000 (16:31 +0000)]
[skip ci] Updated translations via Crowdin