]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agoUpgrade blevesearch to v0.8.1 (#9177)
Mura Li [Wed, 27 Nov 2019 09:23:33 +0000 (17:23 +0800)]
Upgrade blevesearch to v0.8.1 (#9177)

For #1441

https://github.com/blevesearch/bleve/commit/a91b427b59b893f112021841ba7370d285f8426f

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 27 Nov 2019 00:53:49 +0000 (00:53 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix datarace on git.GlobalCommandArgs on tests (#9162)
Lunny Xiao [Wed, 27 Nov 2019 00:35:52 +0000 (08:35 +0800)]
Fix datarace on git.GlobalCommandArgs on tests (#9162)

* fix datarace on git.GlobalCommandArgs on tests

* fix tests

* fix tests

* fix tests

4 years agoYet another attempt to fix the intermittent failure of gpg git test (#9146)
zeripath [Tue, 26 Nov 2019 15:35:41 +0000 (15:35 +0000)]
Yet another attempt to fix the intermittent failure of gpg git test (#9146)

* Yet another attempt to fix the race in gpg_git_test

* add some fail nows

* Need to set preparetestenv

* Ensure that http messages go to the correct server

5 years agoFix "data race" in testlogger (#9159)
zeripath [Mon, 25 Nov 2019 23:21:37 +0000 (23:21 +0000)]
Fix "data race" in testlogger (#9159)

* Fix data race in testlogger

* Update git_helper_for_declarative_test.go

5 years agoFix #9151 - smtp logger configuration sendTos should be an array (#9154)
zeripath [Mon, 25 Nov 2019 13:38:57 +0000 (13:38 +0000)]
Fix #9151 - smtp logger configuration sendTos should be an array (#9154)

* Fix #9151 - sendTos should be an array

* trimspace from the addresses

5 years agoAdd comment highlight when target from url (#9047)
jaqra [Mon, 25 Nov 2019 11:50:46 +0000 (14:50 +0300)]
Add comment highlight when target from url (#9047)

* Add comment highlight css

* Add js to remove highlight on click outside

* Improve refresh page on click outside

* Use location.hash property to remove target

* Handle click ONLY clicked outside of 'targetted comment' (not other comment)

* Remove unnecessary checks and simply code

* Combine hash and setState to remove target path

5 years agoAdd avatar and issue labels to template repositories (#9149)
John Olheiser [Mon, 25 Nov 2019 05:17:51 +0000 (23:17 -0600)]
Add avatar and issue labels to template repositories (#9149)

* Add avatar and issue labels

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix redundant if-err

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoFix max length check and limit in multiple repo forms (#9148)
Lauris BH [Sun, 24 Nov 2019 23:06:23 +0000 (01:06 +0200)]
Fix max length check and limit in multiple repo forms (#9148)

* Fix input field max length for release, label and milestone forms

* Add max length for isseu and PR title

5 years agoupdate #9066 Always show Password field on link account sign in page (#9147)
Benno [Sun, 24 Nov 2019 20:17:53 +0000 (04:17 +0800)]
update #9066 Always show Password field on link account sign in page (#9147)

5 years agoFix what information is shown about user in API. (#9115)
David Svantesson [Sun, 24 Nov 2019 19:45:58 +0000 (20:45 +0100)]
Fix what information is shown about user in API. (#9115)

* Fix what information is shown about user in API.

* Use Email directly, as KeepEmailPrivate is already handled.

5 years agoAdd git hooks and webhooks to template repositories; move to services (#8926)
John Olheiser [Sun, 24 Nov 2019 17:57:52 +0000 (11:57 -0600)]
Add git hooks and webhooks to template repositories; move to services (#8926)

* Add git hooks and webhooks to template options

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update models/repo.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add tooltip if the user can't edit git hooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Close repositories after copying git hooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wording

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Restructure for services

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Return errors

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move GenerateRepository to using a DBContext

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wrap with models.WithTx

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove debug print

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move if-error-delete-repo outside WithTx

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Return nil if no repo generated

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoFix team links in HTML rendering (#9127)
guillep2k [Sun, 24 Nov 2019 16:34:44 +0000 (13:34 -0300)]
Fix team links in HTML rendering (#9127)

* Fix team links in HTML rendering

* Fix check and lint

5 years agoGraceful: Allow graceful restart for fcgi (#9112)
zeripath [Sun, 24 Nov 2019 10:39:50 +0000 (10:39 +0000)]
Graceful: Allow graceful restart for fcgi (#9112)

* Graceful: Allow graceful restart for fcgi

My previous interpretation was incorrect - we do not handle sockets
being passed in over stdin

* Update web.go

5 years agoFix show single review comments in the PR page (#9143)
guillep2k [Sun, 24 Nov 2019 05:46:16 +0000 (02:46 -0300)]
Fix show single review comments in the PR page (#9143)

5 years agoMove mirror sync actions to notification (#9022)
Lunny Xiao [Sun, 24 Nov 2019 05:16:59 +0000 (13:16 +0800)]
Move mirror sync actions to notification (#9022)

* Move mirror sync actions to notification

* fix lint

5 years agoGraceful: Allow graceful restart for unix sockets (#9113)
zeripath [Sun, 24 Nov 2019 02:11:24 +0000 (02:11 +0000)]
Graceful: Allow graceful restart for unix sockets (#9113)

Previously we could not handle graceful restarts for http over unix
sockets. These can now be handled.

5 years agofix add comment button text align (#9140)
Benno [Sat, 23 Nov 2019 23:07:15 +0000 (07:07 +0800)]
fix add comment button text align (#9140)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 23 Nov 2019 15:05:14 +0000 (15:05 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix race on indexer (#9136)
Lunny Xiao [Sat, 23 Nov 2019 15:03:35 +0000 (23:03 +0800)]
fix race on indexer (#9136)

5 years agoAdd single sign-on support via SSPI on Windows (#8463)
QuaSoft [Fri, 22 Nov 2019 23:33:31 +0000 (01:33 +0200)]
Add single sign-on support via SSPI on Windows (#8463)

* Add single sign-on support via SSPI on Windows

* Ensure plugins implement interface

* Ensure plugins implement interface

* Move functions used only by the SSPI auth method to sspi_windows.go

* Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected

* Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links.

* Update documentation for the new 'SPNEGO with SSPI' login source

* Mention in documentation that ROOT_URL should contain the FQDN of the server

* Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing)

* Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources)

* Add option in SSPIConfig for removing of domains from logon names

* Update helper text for StripDomainNames option

* Make sure handleSignIn() is called after a new user object is created by SSPI auth method

* Remove default value from text of form field helper

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Remove default value from text of form field helper

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Remove default value from text of form field helper

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates

* Remove code duplication

* Log errors in ActiveLoginSources

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Revert suffix of randomly generated E-mails for Reverse proxy authentication

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Revert unneeded white-space change in template

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add copyright comments at the top of new files

* Use loopback name for randomly generated emails

* Add locale tag for the SSPISeparatorReplacement field with proper casing

* Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields

* Update docs/content/doc/features/authentication.en-us.md

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Remove Priority() method and define the order in which SSO auth methods should be executed in one place

* Log authenticated username only if it's not empty

* Rephrase helper text for automatic creation of users

* Return error if more than one active SSPI auth source is found

* Change newUser() function to return error, letting caller log/handle the error

* Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed

* Refactor initialization of the list containing SSO auth methods

* Validate SSPI settings on POST

* Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page

* Make 'Default language' in SSPI config empty, unless changed by admin

* Show error if admin tries to add a second authentication source of type SSPI

* Simplify declaration of global variable

* Rebuild gitgraph.js on Linux

* Make sure config values containing only whitespace are not accepted

5 years agoSend tag create and push webhook when release created on UI (#8671)
Benno [Fri, 22 Nov 2019 22:13:57 +0000 (06:13 +0800)]
Send tag create and push webhook when release created on UI (#8671)

* 'update'

* Send push tag event when release created

* send tag create event while release created in UI

* update to go v1.13

* fix gofmt error

* update #8671 move release tag created hook to modules/notification/webhook due to #8802 refactoring

* use NotifyCreateRef and NotifyPushCommits instead of NotifyNewReleaseTag

* move tag notification to correct place

5 years agoRun make fmt on master (#9129)
David Svantesson [Fri, 22 Nov 2019 21:00:01 +0000 (22:00 +0100)]
Run make fmt on master (#9129)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 22 Nov 2019 14:54:19 +0000 (14:54 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix race condition in ReplaceSanitizer (#9123)
zeripath [Fri, 22 Nov 2019 14:46:39 +0000 (14:46 +0000)]
Fix race condition in ReplaceSanitizer (#9123)

5 years agofixed reCAPTCHA URL (#9083)
Koichi MATSUMOTO [Fri, 22 Nov 2019 08:03:45 +0000 (17:03 +0900)]
fixed reCAPTCHA URL (#9083)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 22 Nov 2019 07:02:24 +0000 (07:02 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoHide credentials when submitting migration (#9102)
Jordan [Fri, 22 Nov 2019 06:37:37 +0000 (00:37 -0600)]
Hide credentials when submitting migration (#9102)

through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.

5 years agomove semantic.dropdown.custom.js to webpack (#9064)
silverwind [Thu, 21 Nov 2019 23:30:14 +0000 (00:30 +0100)]
move semantic.dropdown.custom.js to webpack (#9064)

* move semantic.dropdown.custom.js to webpack

Also disabled a annoying linter rule which insisted that imports can not
contain a file extension.

Fixes: https://github.com/go-gitea/gitea/issues/8971
* reorganize web_src files and rebuild

* restart ci

5 years agoAdd USE_SERVICE_WORKER setting (#9110)
silverwind [Thu, 21 Nov 2019 20:06:23 +0000 (21:06 +0100)]
Add USE_SERVICE_WORKER setting (#9110)

* Add USE_SERVICE_WORKER setting

This will be very useful setting for anyone doing frontend work.

Fixes: https://github.com/go-gitea/gitea/issues/9044
* prevent potential syntax error on old browsers

5 years agoAdd Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964)
zeripath [Thu, 21 Nov 2019 18:32:02 +0000 (18:32 +0000)]
Add Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964)

* Graceful Shutdown for windows and others

Restructures modules/graceful, adding shutdown for windows, removing and
replacing the old minwinsvc code.

Creates a new waitGroup - terminate which allows for goroutines to
finish up after the shutdown of the servers.

Shutdown and terminate hooks are added for goroutines.

* Remove unused functions - these can be added in a different PR

* Add startup timeout functionality

* Document STARTUP_TIMEOUT

5 years agoMove merge actions to notification (#9024)
Lunny Xiao [Thu, 21 Nov 2019 17:08:42 +0000 (01:08 +0800)]
Move merge actions to notification (#9024)

* Move merge actions to notification

* Add missing mail notification

5 years agoMove HttpBackend function to Http to reduce function calls when git smart http reques...
Lunny Xiao [Thu, 21 Nov 2019 16:24:43 +0000 (00:24 +0800)]
Move HttpBackend function to Http to reduce function calls when git smart http requests (#9057)

5 years ago[fix] typo (#9104)
maicss [Thu, 21 Nov 2019 13:27:05 +0000 (21:27 +0800)]
[fix] typo (#9104)

5 years agoAdd template repositories to comparison (#9101)
John Olheiser [Wed, 20 Nov 2019 22:23:45 +0000 (16:23 -0600)]
Add template repositories to comparison (#9101)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoFix nil context user (#9099)
John Olheiser [Wed, 20 Nov 2019 19:44:35 +0000 (13:44 -0600)]
Fix nil context user (#9099)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoHide given credentials for migrated repos. (#9097)
Jordan [Wed, 20 Nov 2019 18:01:09 +0000 (12:01 -0600)]
Hide given credentials for migrated repos. (#9097)

CloneAddr was being saved as OriginalURL.

Now passing OriginalURL through from the form and
saving it in it's place

5 years agoRefactor Issues Subscription (#8738)
6543 [Wed, 20 Nov 2019 14:50:54 +0000 (15:50 +0100)]
Refactor Issues Subscription (#8738)

* FIX: getIssueWatchers() get only aktive suscriber

* save query to work later with it or not ...

* fix test + add new case

* corect tests + GetIssueWatch

* API issue_subscripton: Put/Delete require tocken

* remove redundant code

* swagger specify return value

* remove unused binding

* remove note
because I'll implement this in a different way and in another PR

* ID should be unique!

* use xorm session

* Revert "use xorm session"

This reverts commit c1de540147199f2f1a8dd0d008f54af3603e2229.

* better test code
* more acurate comments
* use assert.False/True instead of Equal

* use more assert methodes

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 Nov 2019 11:58:10 +0000 (11:58 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoTeam permission to create repository in organization (#8312)
David Svantesson [Wed, 20 Nov 2019 11:27:49 +0000 (12:27 +0100)]
Team permission to create repository in organization (#8312)

* Add team permission setting to allow creating repo in organization.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test case for creating repo when have team creation access.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* build error: should omit comparison to bool constant

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add comment on exported functions

* Fix fixture consistency, fix existing unit tests

* Fix boolean comparison in xorm query.

* addCollaborator and changeCollaborationAccessMode separate steps

More clear to use different if-cases.

* Create and commit xorm session

* fix

* Add information of create repo permission in team sidebar

* Add migration step

* Clarify that repository creator will be administrator.

* Fix some things after merge

* Fix language text that use html

* migrations file

* Create repository permission -> Create repositories

* fix merge

* fix review comments

5 years agoExplore page: Add topic param to pagination (#9077) (#9078)
David Svantesson [Wed, 20 Nov 2019 09:07:09 +0000 (10:07 +0100)]
Explore page: Add topic param to pagination (#9077) (#9078)

5 years agoFix doc example for asciidoc (#9072)
guillep2k [Wed, 20 Nov 2019 06:17:14 +0000 (03:17 -0300)]
Fix doc example for asciidoc (#9072)

* Fix doc example for asciidoc

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

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

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 Nov 2019 05:34:34 +0000 (05:34 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoupdate golang.org/x/crypto vendor to use acme v2 (#9056)
techknowlogick [Wed, 20 Nov 2019 05:30:46 +0000 (00:30 -0500)]
update golang.org/x/crypto vendor to use acme v2 (#9056)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 Nov 2019 00:16:19 +0000 (00:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix password checks on admin create/edit user (#9076)
guillep2k [Wed, 20 Nov 2019 00:07:51 +0000 (21:07 -0300)]
Fix password checks on admin create/edit user (#9076)

* Fix password checks on admin create/edit user

* Remove incorrect trimspace

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 Nov 2019 23:06:30 +0000 (23:06 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd password requirement info on error (#9074)
guillep2k [Tue, 19 Nov 2019 22:44:58 +0000 (19:44 -0300)]
Add password requirement info on error (#9074)

* Add password requirement info on error

* Move BuildComplexityError to the password pkg

* Unexport complexity type

* Fix extra line

* Update modules/password/password.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoContext menus for comments (#9043)
John Olheiser [Tue, 19 Nov 2019 18:33:42 +0000 (12:33 -0600)]
Context menus for comments (#9043)

* Add quote replies

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 Nov 2019 07:37:59 +0000 (07:37 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix placeholders in the error message (#9060)
Iwasa Kazmi [Tue, 19 Nov 2019 07:35:37 +0000 (16:35 +0900)]
fix placeholders in the error message (#9060)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 Nov 2019 00:06:09 +0000 (00:06 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAvoid re-issuing redundant cross-references. (#8734)
guillep2k [Mon, 18 Nov 2019 23:43:03 +0000 (20:43 -0300)]
Avoid re-issuing redundant cross-references. (#8734)

* Avoid re-issuing redundant cross-references.

* Remove unused func; fix lint

* Simplify code as suggested by @laftriks

* Update test

5 years agofix: add search to reserved usernames (#9063)
Antoine GIRARD [Mon, 18 Nov 2019 20:03:25 +0000 (21:03 +0100)]
fix: add search to reserved usernames (#9063)

* fix: add search to reserved usernames

* Update integrations/user_test.go

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 18 Nov 2019 17:06:44 +0000 (17:06 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow authors to use act keywords in PR content (#9059)
guillep2k [Mon, 18 Nov 2019 17:03:49 +0000 (14:03 -0300)]
Allow authors to use act keywords in PR content (#9059)

5 years agoClose/reopen issues by keywords in titles and comments (#8866)
guillep2k [Mon, 18 Nov 2019 13:13:07 +0000 (10:13 -0300)]
Close/reopen issues by keywords in titles and comments (#8866)

* Add close/reopen from comment functionality

* Fix comment

* Rewrite closing/reopening template

* Check xref permissions, move action to services/pull

* Fix RefIsPull field

* Add xref tests

* Fix xref unique filter

* Only highlight keywords for actionable xrefs

* Fix xref neuter filter

* Fix check return status

* Restart CI

5 years agoRewrite delivery of issue and comment mails (#9009)
guillep2k [Mon, 18 Nov 2019 08:08:20 +0000 (05:08 -0300)]
Rewrite delivery of issue and comment mails (#9009)

* Mail issue subscribers, rework the function

* Simplify a little more

* Fix unused variable

* Refactor mail delivery to avoid heavy load on server

* Avoid splitting into too many goroutines

* Fix comments and optimize GetMaileableUsersByIDs()

* Fix return on errors

5 years agoMove modules/gzip to gitea.com/macaron/gzip (#9058)
Lunny Xiao [Mon, 18 Nov 2019 05:18:33 +0000 (13:18 +0800)]
Move modules/gzip to gitea.com/macaron/gzip (#9058)

* Move modules/gzip to gitea.com/macaron/gzip

* Fix vendor

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 18 Nov 2019 01:29:04 +0000 (01:29 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix double scroll in branch dropdown (#9048)
Vedran [Mon, 18 Nov 2019 01:25:24 +0000 (02:25 +0100)]
Fix double scroll in branch dropdown (#9048)

* Fix double scroll in branch dropdown

* Revert of 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b

* Changes in .less, generated new .css

* Revert unnecessary commented line

5 years agoenable lazy-loading of gitgraph.js (#9036)
silverwind [Sun, 17 Nov 2019 21:39:06 +0000 (22:39 +0100)]
enable lazy-loading of gitgraph.js (#9036)

- moved gitgraph.js to web_src and made it importable and es6-compatible
- created new webpack chunk for gitgraph
- enabled CSS loader in webpack
- enabled async/await syntax via regenerator-runtime
- added script to ensure webpack chunks are loaded correctly
- disable terser's comment extraction to prevent .LICENCE files

gitgraph.js has many issues:

1. it is incompatible with ES6 because of strict-mode violations
1. it does not export anything
1. it's css has weird styles like for `body`
1. it is not available on npm

I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 Nov 2019 19:44:07 +0000 (19:44 +0000)]
[skip ci] Updated translations via Crowdin

5 years agowiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)
Cherrg [Sun, 17 Nov 2019 19:42:44 +0000 (20:42 +0100)]
wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)

* Add add 'write' 'preview' buttons to wiki edit like in issues

affects #6975

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* update dark theme

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix css lint warnings - missing spaces

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* hide preview button on no fullscreen toolbar

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 Nov 2019 14:13:14 +0000 (14:13 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd first issue comment hashtag (#9052)
jaqra [Sun, 17 Nov 2019 14:00:39 +0000 (17:00 +0300)]
Add first issue comment hashtag (#9052)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 Nov 2019 06:31:35 +0000 (06:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoHandle setting default branch via API (#9030)
David Svantesson [Sun, 17 Nov 2019 06:30:01 +0000 (07:30 +0100)]
Handle setting default branch via API (#9030)

5 years agoUpdate branch API endpoint to show effective branch protection. (#9031)
David Svantesson [Sat, 16 Nov 2019 19:39:18 +0000 (20:39 +0100)]
Update branch API endpoint to show effective branch protection. (#9031)

* Add API endpoint for displaying effective branch protection.

* Add status checks.

5 years agointegrations: fix dropped errors in TestCreateOrUpdateRepoFileForUpdateWithFileMove...
Lars Lehtonen [Sat, 16 Nov 2019 18:21:39 +0000 (10:21 -0800)]
integrations: fix dropped errors in TestCreateOrUpdateRepoFileForUpdateWithFileMove() (#9040)

integrations: fix dropped error in lfsCommitAndPushTest()

5 years agoOnly return JSON for add/remove all (#9028)
John Olheiser [Sat, 16 Nov 2019 17:36:13 +0000 (11:36 -0600)]
Only return JSON for add/remove all (#9028)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoCheck compiled files during build (#9042)
Gary Kim [Sat, 16 Nov 2019 14:15:07 +0000 (22:15 +0800)]
Check compiled files during build (#9042)

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoButton tooltip formatting under Branches (#9034)
Vedran [Sat, 16 Nov 2019 12:03:07 +0000 (13:03 +0100)]
Button tooltip formatting under Branches (#9034)

* Fixes button tooltip formatting under Branches

* Formatting on download button for default branch

5 years agoAdd retry for migration http/https requests (#9019)
Lunny Xiao [Sat, 16 Nov 2019 08:30:06 +0000 (16:30 +0800)]
Add retry for migration http/https requests (#9019)

* Add retry for migration http/https requests

* give the more suitable name for retry configuraion items

* fix docs and lint

* Only use retryDownloader when setting > 1

5 years agowiki - editor - enable side-by-side button (#7242)
Cherrg [Sat, 16 Nov 2019 02:20:07 +0000 (03:20 +0100)]
wiki - editor - enable side-by-side button (#7242)

* wiki - enable side-by-side button in editor

and add some delay so side-by-side live preview is updated
* every 10th keypress
* if keypress < 10 -> apter no input for 1 sec

affects #5436

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* decrease timeinterval user need to stop before rendering is triggered

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* removed not needed code with simpleMDE placeholder

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* run highlight.js on markdown preview

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix white border around side-by-side preview

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agoMove git graph from models to modules/graph (#9027)
Lunny Xiao [Sat, 16 Nov 2019 00:47:57 +0000 (08:47 +0800)]
Move git graph from models to modules/graph (#9027)

5 years agoUpdate display of reactions to issues and comments (#9038)
mrsdizzie [Fri, 15 Nov 2019 21:47:04 +0000 (16:47 -0500)]
Update display of reactions to issues and comments (#9038)

Modify display of reactions to issues to remove spaces and make them
feel more apart of the reactions bar rather than separate items within.

5 years agoextract some inline functions related with create comment (#8931)
Lunny Xiao [Fri, 15 Nov 2019 18:18:09 +0000 (02:18 +0800)]
extract some inline functions related with create comment (#8931)

5 years agoFix permission checks for close/reopen from commit (#8875)
guillep2k [Fri, 15 Nov 2019 15:20:47 +0000 (12:20 -0300)]
Fix permission checks for close/reopen from commit (#8875)

* Fix checks for close/reopen from commit

* Fix permission order

5 years agoEnsure Written is set in GZIP ProxyResponseWriter (#9018)
zeripath [Fri, 15 Nov 2019 14:09:53 +0000 (14:09 +0000)]
Ensure Written is set in GZIP ProxyResponseWriter (#9018)

Fix #9001

The GZIP ProxyReponseWriter doesn't currently respond correctly
to requests about its Written status - leading to #9001.

This PR properly reimplements these methods.

5 years agoAdd review comments to mail notifications (#8996)
guillep2k [Fri, 15 Nov 2019 12:59:21 +0000 (09:59 -0300)]
Add review comments to mail notifications (#8996)

5 years agoFix broken link to branch from issue list (#9003)
Vedran [Fri, 15 Nov 2019 11:38:54 +0000 (12:38 +0100)]
Fix broken link to branch from issue list (#9003)

* Fix broken link to branch from issue list

* Update templates/repo/issue/list.tmpl

Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* apply @mrsdizzie's review

5 years agofix wrong system notice when repository is empty (#9010)
Lunny Xiao [Fri, 15 Nov 2019 10:53:20 +0000 (18:53 +0800)]
fix wrong system notice when repository is empty (#9010)

5 years agoMove transfer repository and rename repository on a service package and start action...
Lunny Xiao [Fri, 15 Nov 2019 08:06:11 +0000 (16:06 +0800)]
Move transfer repository and rename repository on a service package and start action notification (#8573)

* move transfer repository and rename repository on a service package and start action notification

* remove unused codes

* fix lint

* fix bugs

* fix test

* fix test

* fix test

* fix lint

* update go mod and sum

5 years agoGithook highlighter (#8932)
Konctantin [Fri, 15 Nov 2019 06:56:06 +0000 (09:56 +0300)]
Githook highlighter (#8932)

* Add code highlighter to GitHook edit

Signed-off-by: Konctantin <gawrilyako@gmail.com>
* Fix indentation

Signed-off-by: Konctantin <gawrilyako@gmail.com>
* Resolve merge conflict

Signed-off-by: gawrilyako@gmail.com <Konctantin>
* Resolve merge conflict

Signed-off-by: gawrilyako@gmail.com <Konctantin>
* Fix pre-build drone event

Signed-off-by: Konctantin <gawrilyako@gmail.com>
5 years agoservices/mirror: fix dropped test errors (#9007)
Lars Lehtonen [Fri, 15 Nov 2019 04:54:23 +0000 (20:54 -0800)]
services/mirror: fix dropped test errors (#9007)

5 years agoExpand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)
Benno [Fri, 15 Nov 2019 02:52:59 +0000 (10:52 +0800)]
Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)

* update #8659 fold/unfold code diffs

* add fold button style

* update #8659 implement expand up/down codes (blob excerpt)

* fix golint errors

* fix expand direction

* remove debug message

* update css style for blob exceprt

* fix typo in comment

* update style sheet with less

* update expect diff (add SectionInfo)

* update #8942 accept suggested change (fix typo)

* close reader and check file type before get tail section

* adjust button position and check file type before insert fold button

* move index js to web_src

* merge index.js with master

* generate index.js

* update js coding style

5 years agoPack web_src/js/draw.js to public/js/index.js (#8975)
Lunny Xiao [Fri, 15 Nov 2019 01:27:50 +0000 (09:27 +0800)]
Pack web_src/js/draw.js to public/js/index.js (#8975)

* pack web_src/js/draw.js to public/js/index.js

* fix eslint

5 years agoUpdate dashboard context for PR reviews (#8995)
John Olheiser [Thu, 14 Nov 2019 23:52:18 +0000 (17:52 -0600)]
Update dashboard context for PR reviews (#8995)

* Update dashboard context for PR reviews

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Only append head action if it has content or is approval/rejection

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years agoEnforce Gitea environment for pushes (#8982)
zeripath [Thu, 14 Nov 2019 22:39:48 +0000 (22:39 +0000)]
Enforce Gitea environment for pushes (#8982)

* Enforce Gitea environment for pushes

* Update custom/conf/app.ini.sample

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
5 years agomodernize js and use babel (#8973)
silverwind [Thu, 14 Nov 2019 21:39:51 +0000 (22:39 +0100)]
modernize js and use babel (#8973)

* modernize js and use babel

- add babel toolchain to transform modern JS to ES5
- extend eslint config for modern rules
- fixes linting issues via `eslint --fix` and manual fixes

* run 'make css' to satisfy CI

* code style tweaks and set js indendation to 2 in .editorconfig

* regenerate js

5 years agoNew review approvals shouldn't require a message (#8991)
John Olheiser [Thu, 14 Nov 2019 20:58:01 +0000 (14:58 -0600)]
New review approvals shouldn't require a message (#8991)

* New approvals don't require content

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix edge-bug

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoShadow password correctly for session config (#8984)
zeripath [Thu, 14 Nov 2019 20:06:02 +0000 (20:06 +0000)]
Shadow password correctly for session config (#8984)

Fix #8718

This PR shadows passwords in session config correctly by detecting
the VirtualProvider, unmarshalling the original config and then
shadowing config within that.

5 years agoDrop Admin attribute based on LDAP when login (continue #1743) (#8849)
6543 [Thu, 14 Nov 2019 19:10:23 +0000 (20:10 +0100)]
Drop Admin attribute based on LDAP when login (continue #1743) (#8849)

* Update User information in Gitea based on LDAP when login

* Update Admin Flag only if exist in settings

* Fix affectation

* Update models/login_source.go

Co-Authored-By: JustKiddingCode <JustKiddingCode@users.noreply.github.com>
* Better ident

* Apply suggestions from code review

Update user information

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Make fmt

* add err handling

* if user exist but login is Prohibit return return nil, and Prohibit err

* keep login speed

* User sync is implemented at #1478 - so only make sure that admin acces is drpoed if changed

* handle error and still use async task

* no async

* only update admin if Sync is enabled

* update two comments

* add lafriks suggestions

Co-Authored-By: Lauris BH <lauris@nix.lv>
* if adminFilter is set - use it

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/login_source.go

well - I should look more detaild at suggestions :D

Co-Authored-By: Lauris BH <lauris@nix.lv>
* make it work again

* set is_admin value to user

* look nicer

5 years agofix bug when pack js (#8992)
Lunny Xiao [Thu, 14 Nov 2019 17:58:32 +0000 (01:58 +0800)]
fix bug when pack js (#8992)

5 years agoAdd ALLOW_ONLY_EXTERNAL_REGISTRATION to config cheat sheet (#8986)
zeripath [Thu, 14 Nov 2019 16:58:34 +0000 (16:58 +0000)]
Add ALLOW_ONLY_EXTERNAL_REGISTRATION to config cheat sheet (#8986)

ALLOW_ONLY_EXTERNAL_REGISTRATION was missed off the cheat sheet. This PR adds it.

Fix #8180

5 years agoChangelog for 1.10.0 (#8978) (#8987)
John Olheiser [Thu, 14 Nov 2019 15:34:30 +0000 (09:34 -0600)]
Changelog for 1.10.0 (#8978) (#8987)

* Changelog for 1.10.0 (#8978)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update security

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago[Feature] Add Gitea Emoji (#8950)
6543 [Thu, 14 Nov 2019 13:44:46 +0000 (14:44 +0100)]
[Feature] Add Gitea Emoji (#8950)

* add gitea emoji

* alphabetic order

* Update emojify.js to 1.1.0

* mv to custom

* add gitea emoji

* minify

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 14 Nov 2019 08:01:32 +0000 (08:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix(docs): Fixed creating Windows service commands (#8979)
Wars [Thu, 14 Nov 2019 07:57:29 +0000 (15:57 +0800)]
fix(docs): Fixed creating Windows service commands (#8979)

escaping " to \"