Commit Graph

8451 Commits (f5bd0884d2adea8ef7ba1bbd9dacb240d7c6b0f7)
 

Author SHA1 Message Date
zeripath f5bd0884d2
Fix - smtp logger configuration sendTos should be an array ()
* Fix  - sendTos should be an array

* trimspace from the addresses
jaqra 802aa6d5f3 Add comment highlight when target from url ()
* 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
John Olheiser 62bcb2b7f1 Add avatar and issue labels to template repositories ()
* 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>
Lauris BH 95c3dc856a
Fix max length check and limit in multiple repo forms ()
* Fix input field max length for release, label and milestone forms

* Add max length for isseu and PR title
Benno e8241bf55e update Always show Password field on link account sign in page ()
David Svantesson d0edb607a3 Fix what information is shown about user in API. ()
* Fix what information is shown about user in API.

* Use Email directly, as KeepEmailPrivate is already handled.
John Olheiser e84326aaec Add git hooks and webhooks to template repositories; move to services ()
* 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>
guillep2k f25fd5c8eb Fix team links in HTML rendering ()
* Fix team links in HTML rendering

* Fix check and lint
zeripath 7523314ef8
Graceful: Allow graceful restart for fcgi ()
* Graceful: Allow graceful restart for fcgi

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

* Update web.go
guillep2k d779deef6e Fix show single review comments in the PR page ()
Lunny Xiao 8ab35eefc4 Move mirror sync actions to notification ()
* Move mirror sync actions to notification

* fix lint
zeripath e3f22ad2cc Graceful: Allow graceful restart for unix sockets ()
Previously we could not handle graceful restarts for http over unix
sockets. These can now be handled.
Benno bb2c0c3729 fix add comment button text align ()
GiteaBot e6036d9899 [skip ci] Updated translations via Crowdin
Lunny Xiao 9856ac5818
fix race on indexer ()
QuaSoft 7b4d2f7a2a Add single sign-on support via SSPI on Windows ()
* 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
Benno eb1b225d9a Send tag create and push webhook when release created on UI ()
* '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  move release tag created hook to modules/notification/webhook due to  refactoring

* use NotifyCreateRef and NotifyPushCommits instead of NotifyNewReleaseTag

* move tag notification to correct place
David Svantesson a4e398dc45 Run make fmt on master ()
GiteaBot cbd2bebec0 [skip ci] Updated translations via Crowdin
zeripath 675f275237
Fix race condition in ReplaceSanitizer ()
Koichi MATSUMOTO 30fde478db fixed reCAPTCHA URL ()
GiteaBot 513b9fc988 [skip ci] Updated translations via Crowdin
Jordan ba9a2d2abb Hide credentials when submitting migration ()
through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.
silverwind 7bc8c6b180 move semantic.dropdown.custom.js to webpack ()
* 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
silverwind f0aaffeedc Add USE_SERVICE_WORKER setting ()
* 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
zeripath cbaa1de9ec Add Graceful shutdown for Windows and hooks for shutdown of goroutines ()
* 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
Lunny Xiao d7ac9727bb Move merge actions to notification ()
* Move merge actions to notification

* Add missing mail notification
Lunny Xiao d5261b9aab Move HttpBackend function to Http to reduce function calls when git smart http requests ()
maicss 51ed4cc063 [fix] typo ()
John Olheiser dd82e401fd Add template repositories to comparison ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
John Olheiser 8f49b1232a Fix nil context user ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Jordan 1615b3c187 Hide given credentials for migrated repos. ()
CloneAddr was being saved as OriginalURL.

Now passing OriginalURL through from the form and
saving it in it's place
6543 2ab8c78c30 Refactor Issues Subscription ()
* 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 c1de540147.

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

* use more assert methodes
GiteaBot dfd8b94923 [skip ci] Updated translations via Crowdin
David Svantesson 69a255defb Team permission to create repository in organization ()
* 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
David Svantesson 35c3ea952a Explore page: Add topic param to pagination () ()
guillep2k a85d916d3e Fix doc example for asciidoc ()
* 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>
GiteaBot a88a58a83e [skip ci] Updated translations via Crowdin
techknowlogick 05f6eccf27
update golang.org/x/crypto vendor to use acme v2 ()
GiteaBot 108bed2023 [skip ci] Updated translations via Crowdin
guillep2k e4ec32de2e Fix password checks on admin create/edit user ()
* Fix password checks on admin create/edit user

* Remove incorrect trimspace
GiteaBot 4a357f4188 [skip ci] Updated translations via Crowdin
guillep2k c57edb6c7b Add password requirement info on error ()
* 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>
John Olheiser eb0359cad4 Context menus for comments ()
* Add quote replies

Signed-off-by: jolheiser <john.olheiser@gmail.com>
GiteaBot af7f08bca8 [skip ci] Updated translations via Crowdin
Iwasa Kazmi 5a3af7992c fix placeholders in the error message ()
GiteaBot 9ccb50f162 [skip ci] Updated translations via Crowdin
guillep2k 2c2b9718e6 Avoid re-issuing redundant cross-references. ()
* Avoid re-issuing redundant cross-references.

* Remove unused func; fix lint

* Simplify code as suggested by @laftriks

* Update test
Antoine GIRARD f128e06ea6 fix: add search to reserved usernames ()
* fix: add search to reserved usernames

* Update integrations/user_test.go

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
GiteaBot d338e8238f [skip ci] Updated translations via Crowdin