]>
source.dussan.org Git - gitea.git/log
Jonathan Tran [Wed, 16 Jun 2021 21:56:43 +0000 (17:56 -0400)]
Fix spelling (#16179)
Co-authored-by: Jonathan Tran <jon@allspice.io>
6543 [Wed, 16 Jun 2021 17:04:37 +0000 (19:04 +0200)]
Add subject-type filter to list notification API endpoints (#16177)
Close #15886
zeripath [Wed, 16 Jun 2021 01:02:03 +0000 (02:02 +0100)]
issue-keyword class is being incorrectly stripped off spans (#16163)
Bluemonday sanitizer regexp rules are not additive, so the addition of the icons,
emojis and chroma syntax policy has led to this being stripped.
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Wed, 16 Jun 2021 00:11:33 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Tue, 15 Jun 2021 22:29:25 +0000 (23:29 +0100)]
Only check access tokens if they are likely to be tokens (#16164)
* Only check access tokens if they are likely to be tokens
Gitea will currently check every if every password is an access token even though
most passwords are not and cannot be access tokens.
By creation access tokens are 40 byte hexadecimal strings therefore only these should
be checked.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Steven [Tue, 15 Jun 2021 19:16:18 +0000 (21:16 +0200)]
Update MAINTAINERS (#16162)
koalp [Tue, 15 Jun 2021 01:15:56 +0000 (03:15 +0200)]
Use milestone deadline when sorting issues (#14551)
When sorting issues by deadline, the deadline of the milestone the issue
is attached to wasn't taken into account.
It have been changed and the nearest deadline is taken into account for
sorting.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath [Tue, 15 Jun 2021 01:15:12 +0000 (02:15 +0100)]
Make command in authorized keys a template (#16003)
Fix #15595
Replaces #15978
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
KN4CK3R [Tue, 15 Jun 2021 01:12:33 +0000 (03:12 +0200)]
Add attachments for PR reviews (#16075)
* First step for multiple dropzones per page.
* Allow attachments on review comments.
* Lint.
* Fixed accidental initialize of the review textarea.
* Initialize SimpleMDE textarea.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot [Tue, 15 Jun 2021 00:11:35 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
KN4CK3R [Mon, 14 Jun 2021 20:42:58 +0000 (22:42 +0200)]
Fixed setting of wrong position (#16148)
zeripath [Mon, 14 Jun 2021 19:07:49 +0000 (20:07 +0100)]
v180 migration should be standalone (#16151)
Unfortunately the v180 migration picked up a few non-standalone dependencies. This PR
forcibly copies the important parts back into the migration.
Fix #16150
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Nils Dralle [Mon, 14 Jun 2021 18:30:35 +0000 (20:30 +0200)]
Fix private repo permission problem (#16142)
* Change user access permission
* Add string 'transfer_notices_3'
* Add 3rd transfer note to transfer dialog
* Add test
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
KN4CK3R [Mon, 14 Jun 2021 17:20:43 +0000 (19:20 +0200)]
Add push to remote mirror repository (#15157)
* Added push mirror model.
* Integrated push mirror into queue.
* Moved methods into own file.
* Added basic implementation.
* Mirror wiki too.
* Removed duplicated method.
* Get url for different remotes.
* Added migration.
* Unified remote url access.
* Add/Remove push mirror remotes.
* Prevent hangs with missing credentials.
* Moved code between files.
* Changed sanitizer interface.
* Added push mirror backend methods.
* Only update the mirror remote.
* Limit refs on push.
* Added UI part.
* Added missing table.
* Delete mirror if repository gets removed.
* Changed signature. Handle object errors.
* Added upload method.
* Added "upload" unit tests.
* Added transfer adapter unit tests.
* Send correct headers.
* Added pushing of LFS objects.
* Added more logging.
* Simpler body handling.
* Process files in batches to reduce HTTP calls.
* Added created timestamp.
* Fixed invalid column name.
* Changed name to prevent xorm auto setting.
* Remove table header im empty.
* Strip exit code from error message.
* Added docs page about mirroring.
* Fixed date.
* Fixed merge errors.
* Moved test to integrations.
* Added push mirror test.
* Added test.
Lunny Xiao [Mon, 14 Jun 2021 12:18:09 +0000 (20:18 +0800)]
Improve performance of dashboard list orgs (#16099)
* Improve performance of dashboard list orgs
* Fix wrong error description
* unexport queryUserOrgIDs method
* SimpleOrg -> MinimalOrg
* .
Co-authored-by: 6543 <6543@obermui.de>
KN4CK3R [Mon, 14 Jun 2021 10:33:16 +0000 (12:33 +0200)]
Add OpenID claims "profile" and "email". (#16141)
* Added OpenID claims "profile" and "email".
* Splitted error.
* Added scopes_supported and claims_supported.
* Added more metadata.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
KN4CK3R [Mon, 14 Jun 2021 03:06:52 +0000 (05:06 +0200)]
Fixed sanitize errors. (#15240)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao [Mon, 14 Jun 2021 02:22:55 +0000 (10:22 +0800)]
Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599)
* Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index
* Fix pull index
* Add tests for concurrent creating issues
* Fix lint
* Fix tests
* Fix postgres test
* Add test for migration v180
* Rename wrong test file name
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
a1012112796 [Sun, 13 Jun 2021 14:59:19 +0000 (22:59 +0800)]
small refactor for retry downloader (#16137)
Signed-off-by: a1012112796 <1012112796@qq.com>
GiteaBot [Sun, 13 Jun 2021 00:11:23 +0000 (00:11 +0000)]
[skip ci] Updated licenses and gitignores
Andrei Yankovich [Fri, 11 Jun 2021 18:51:05 +0000 (21:51 +0300)]
Removable media support (#16136)
Add support removable media for snap version of gitia.
for get more info about removable media interface see the snapcraft [documentation](https://snapcraft.io/docs/removable-media-interface)
zeripath [Thu, 10 Jun 2021 21:25:25 +0000 (22:25 +0100)]
Set self-adjusting deadline for connection writing (#16068)
* Set self-adjusting deadline for connection writing
In #16055 it appears that the simple 5s deadline doesn't work for large
file writes. Now we can't - or at least shouldn't just set no deadline
as go will happily let these connections block indefinitely. However,
what seems reasonable is to set some minimum rate we expect for writing.
This PR suggests the following algorithm:
* Every write has a minimum timeout of 5s (adjustable at compile time.)
* If there has been a previous write - then consider its previous
deadline, add half of the minimum timeout + 2s per kb about to written.
* If that new deadline is after the minimum timeout use that.
Fix #16055
* Linearly increase timeout
* Make PerWriteTimeout, PerWritePerKbTimeouts configurable
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
6543 [Thu, 10 Jun 2021 14:44:25 +0000 (16:44 +0200)]
Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery
* update github.com/alecthomas/chroma
* update github.com/blevesearch/bleve/v2
* update github.com/caddyserver/certmagic
* update github.com/go-enry/go-enry/v2
* update github.com/go-git/go-billy/v5
* update github.com/go-git/go-git/v5
* update github.com/go-redis/redis/v8
* update github.com/go-testfixtures/testfixtures/v3
* update github.com/jaytaylor/html2text
* update github.com/json-iterator/go
* update github.com/klauspost/compress
* update github.com/markbates/goth
* update github.com/mattn/go-isatty
* update github.com/mholt/archiver/v3
* update github.com/microcosm-cc/bluemonday
* update github.com/minio/minio-go/v7
* update github.com/prometheus/client_golang
* update github.com/unrolled/render
* update github.com/xanzy/go-gitlab
* update github.com/yuin/goldmark
* update github.com/yuin/goldmark-highlighting
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao [Thu, 10 Jun 2021 08:52:37 +0000 (16:52 +0800)]
Remove utf8 option from installation page (#16126)
GiteaBot [Thu, 10 Jun 2021 00:11:49 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Thu, 10 Jun 2021 00:08:19 +0000 (08:08 +0800)]
Fix bug on getIssueIDsByRepoID (#16119)
* Fix bug on getIssueIDsByRepoID
* Add test
Lunny Xiao [Wed, 9 Jun 2021 19:52:55 +0000 (03:52 +0800)]
Remove unnecessary goroutine (#16080)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao [Wed, 9 Jun 2021 17:53:16 +0000 (01:53 +0800)]
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086)
* Add sso.Group, context.Auth, context.APIAuth to allow auth special routes
* Remove unnecessary check
* Rename sso -> auth
* remove unused method of Auth interface
Lunny Xiao [Wed, 9 Jun 2021 12:53:12 +0000 (20:53 +0800)]
Fix http path bug (#16117)
* Fix http path bug
* Add missed request
* add tests
Co-authored-by: 6543 <6543@obermui.de>
Lunny Xiao [Tue, 8 Jun 2021 23:33:54 +0000 (07:33 +0800)]
Refactor routers directory (#15800)
* refactor routers directory
* move func used for web and api to common
* make corsHandler a function to prohibit side efects
* rm unused func
Co-authored-by: 6543 <6543@obermui.de>
zeripath [Tue, 8 Jun 2021 17:46:13 +0000 (18:46 +0100)]
Remove spurious AppSubUrl in serviceworker request. (#16047)
There is another spurious AppSubUrl placement in the serviceworker registration.
This PR removes it.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Tue, 8 Jun 2021 04:36:23 +0000 (12:36 +0800)]
Fix `doctor --run check-db-consistency --fix` with label fix (#16094)
* Add doctor for wrong label and issue_label data
* Fix labels and issue labels check
* Remove unnecessary functions
Lunny Xiao [Tue, 8 Jun 2021 03:52:51 +0000 (11:52 +0800)]
Always store primary email address into email_address table and also the state (#15956)
* Always store primary email address into email_address table and also the state
* Add lower_email to not convert email to lower as what's added
* Fix fixture
* Fix tests
* Use BeforeInsert to save lower email
* Fix v180 migration
* fix tests
* Fix test
* Remove wrong submited codes
* Fix test
* Fix test
* Fix test
* Add test for v181 migration
* remove change user's email to lower
* Revert change on user's email column
* Fix lower email
* Fix test
* Fix test
KN4CK3R [Mon, 7 Jun 2021 16:55:26 +0000 (18:55 +0200)]
Fix data URI scramble (#16098)
* Removed unused method.
* No prefix for data uris.
* Added test to prevent regressions.
Lunny Xiao [Mon, 7 Jun 2021 14:52:59 +0000 (22:52 +0800)]
Merge all deleteBranch as one function and also fix bug when delete branch don't close related PRs (#16067)
* Fix bug when delete branch don't close related PRs
* Merge all deletebranch as one method
* Add missed branch.go
* fix comment
Co-authored-by: Lauris BH <lauris@nix.lv>
KN4CK3R [Mon, 7 Jun 2021 05:27:09 +0000 (07:27 +0200)]
Fixed assert statements. (#16089)
zeripath [Sun, 6 Jun 2021 23:44:58 +0000 (00:44 +0100)]
Make commit info cancelable (#16032)
* Make modules/context.Context a context.Context
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Simplify context calls
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the base context for requests to the HammerContext
Signed-off-by: Andrew Thornton <art27@cantab.net>
* pass context into get-last-commit
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make commit_info cancellable
Signed-off-by: Andrew Thornton <art27@cantab.net>
* use context as context
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Lunny Xiao [Sun, 6 Jun 2021 22:50:07 +0000 (06:50 +0800)]
Fix regression of renderer (#16091)
* Fix regression of renderer
* Fix render setting load twice bug
GiteaBot [Sun, 6 Jun 2021 00:11:36 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
KN4CK3R [Sat, 5 Jun 2021 23:59:27 +0000 (01:59 +0200)]
Rewrite of the LFS server (#15523)
* Restructured code. Moved static checks out of loop.
* Restructured batch api. Add support for individual errors.
* Let router decide if LFS is enabled.
* Renamed methods.
* Return correct status from verify handler.
* Unified media type check in router.
* Changed error code according to spec.
* Moved checks into router.
* Removed invalid v1 api methods.
* Unified methods.
* Display better error messages.
* Added size parameter. Create meta object on upload.
* Use object error on invalid size.
* Skip upload if object exists.
* Moved methods.
* Suppress fields in response.
* Changed error on accept.
* Added tests.
* Use ErrorResponse object.
* Test against message property.
* Add support for the old invalid lfs client.
* Fixed the check because MinIO wraps the error.
* Use individual repositories.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Steven [Sat, 5 Jun 2021 22:04:56 +0000 (00:04 +0200)]
Change default TMPDIR path in rootless containers (#16077)
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
zeripath [Sat, 5 Jun 2021 14:23:22 +0000 (15:23 +0100)]
Fix panic (#16072)
There is an incorrect casting in the wrapped queue.
Fix #16071
Signed-off-by: Andrew Thornton <art27@cantab.net>
NekoBit [Sat, 5 Jun 2021 13:33:34 +0000 (09:33 -0400)]
Fix typo and add TODO notice (#16064)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
KN4CK3R [Sat, 5 Jun 2021 12:32:19 +0000 (14:32 +0200)]
Add Image Diff for SVG files (#14867)
* Added type sniffer.
* Switched content detection from base to typesniffer.
* Added GuessContentType to Blob.
* Moved image info logic to client.
Added support for SVG images in diff.
* Restore old blocked svg behaviour.
* Added missing image formats.
* Execute image diff only when container is visible.
* add margin to spinner
* improve BIN tag on image diffs
* Default to render view.
* Show image diff on incomplete diff.
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Lunny Xiao [Fri, 4 Jun 2021 13:14:20 +0000 (21:14 +0800)]
Copy git data from disk when restore repository (#16066)
GiteaBot [Fri, 4 Jun 2021 00:11:34 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
KN4CK3R [Thu, 3 Jun 2021 22:50:31 +0000 (00:50 +0200)]
Fixed unknown translation key. (#16057)
GiteaBot [Thu, 3 Jun 2021 00:11:34 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Wed, 2 Jun 2021 15:34:11 +0000 (17:34 +0200)]
use "true" for RACE_ENABLED (#15261)
zeripath [Wed, 2 Jun 2021 12:03:59 +0000 (13:03 +0100)]
Fix case change in ownernames (#16045)
If you change the case of a username the change needs to be propagated to their
repositories.
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath [Tue, 1 Jun 2021 19:55:17 +0000 (20:55 +0100)]
Fix bug due to missing MaxStartups and MaxSessions (#16046)
Unforunately #16009 makes these settings mandatory. This PR uses the same technique
as used for the certificates to make these settings non-mandatory.
Fix #16044
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
a1012112796 [Tue, 1 Jun 2021 19:12:50 +0000 (03:12 +0800)]
Fix language switch for install page (#16043)
Signed-off-by: a1012112796 <1012112796@qq.com>
a1012112796 [Tue, 1 Jun 2021 02:22:49 +0000 (10:22 +0800)]
update ``.raw-content`` when edit issue/comment content (#16021)
* update ``.raw-content`` when edit issue/comment content
fix #16000
Signed-off-by: a1012112796 <1012112796@qq.com>
* handle empty content
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Dario Louzado [Tue, 1 Jun 2021 01:33:50 +0000 (22:33 -0300)]
Make sshd_config more flexible regarding connections (#16009)
* Make sshd_config more flexible regarding
MaxStartups and MaxSessions.
See https://man.openbsd.org/sshd_config
for more information.
* make property prefix equals
other existing Gitea SSH properties.
Co-authored-by: dlouzado <dlouzado@senado.leg.br>
GiteaBot [Tue, 1 Jun 2021 00:11:31 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Mon, 31 May 2021 18:22:36 +0000 (19:22 +0100)]
Add missing SameSite settings for the i_like_gitea cookie (#16037)
The i_like_gitea cookie appears to be missing the SameSite settings. I think they
were present at some point but may have been removed in a merge.
This PR ensures that they are set.
Fix #15972
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath [Mon, 31 May 2021 10:46:20 +0000 (11:46 +0100)]
Hide mirror passwords on repo settings page (#16022)
This PR simply hides mirror passwords from being displayed on the repo settings page.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Norwin [Mon, 31 May 2021 08:25:47 +0000 (08:25 +0000)]
Encrypt migration credentials at rest (#15895)
* encrypt migration credentials in task persistence
Not sure this is the best approach, we could encrypt the entire
`PayloadContent` instead. Also instead of clearing individual fields in
payload content, we could just delete the task once it has
(successfully) finished..?
* remove credentials of past migrations
* only run DB migration for completed tasks
* fix binding
* add omitempty
* never serialize unencrypted credentials
* fix import order
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath [Mon, 31 May 2021 06:54:16 +0000 (07:54 +0100)]
Fix bug in reverse proxy (#16026)
Unfortunately go panics you try to cast a nil interface{} as another primitive
therefore you need to check interfaces are not nil before casting.
Fix #16025
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath [Mon, 31 May 2021 06:18:11 +0000 (07:18 +0100)]
Make modules/context.Context a context.Context (#16031)
* Make modules/context.Context a context.Context
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Simplify context calls
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the base context for requests to the HammerContext
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Mon, 31 May 2021 00:11:22 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
silverwind [Sun, 30 May 2021 19:15:57 +0000 (21:15 +0200)]
Replace clipboard.js with async clipboard api (#15899)
Use async clipboard api [1] over this dependency, saving around 10kB
bundle size before minify while delivering the same functionality.
The issue comment button works but does not have a popup indication. We
could add some toast-style notifications in the future to fix that but I
think it's out of scope of this PR.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText
zeripath [Sun, 30 May 2021 16:38:44 +0000 (17:38 +0100)]
Close the dataRC reader sooner (#16023)
Fix #15932
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Sun, 30 May 2021 10:25:11 +0000 (18:25 +0800)]
Improve assets handler middleware (#15961)
* Use route to serve assets but not middleware
* Fix build error with bindata tag
* convert path to absolute
* fix build
* reduce function stack
* Add tests for assets
* Remove test for assets because they are not generated
* Use a http function to serve assets
* Still use middleware to serve assets then less middleware stack for assets
* Move serveContent to original position
* remove unnecessary blank line change
* Fix bug for /assets* requests
* clean code
Co-authored-by: zeripath <art27@cantab.net>
Jimmy Praet [Sun, 30 May 2021 09:38:38 +0000 (11:38 +0200)]
Don't manipulate input params in email notification (#16011)
GiteaBot [Sun, 30 May 2021 00:11:22 +0000 (00:11 +0000)]
[skip ci] Updated licenses and gitignores
Lunny Xiao [Sat, 29 May 2021 20:04:58 +0000 (04:04 +0800)]
Fix get tag when migration (#16014)
Co-authored-by: zeripath <art27@cantab.net>
KN4CK3R [Sat, 29 May 2021 18:44:14 +0000 (20:44 +0200)]
Unified custom config creation (#16012)
* Unified custom config creation.
* Fixed log message.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Kyle D [Sat, 29 May 2021 14:00:02 +0000 (08:00 -0600)]
Remove New PR button in PRs (#15998)
BoYanZh [Sat, 29 May 2021 07:37:21 +0000 (15:37 +0800)]
fix get OS on some of the windows computers (#16007)
GiteaBot [Sat, 29 May 2021 00:11:33 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
Kyle D [Fri, 28 May 2021 17:33:52 +0000 (11:33 -0600)]
Update queue workers for v1.15 (#15999)
* Update queue workers for v1.15
* update app.example.ini
* update re queue path
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Fri, 28 May 2021 00:11:34 +0000 (00:11 +0000)]
[skip ci] Updated translations via Crowdin
Jimmy Praet [Thu, 27 May 2021 20:02:04 +0000 (22:02 +0200)]
Add links to toggle WIP status (#14677)
* Add links to toggle PR WIP status
* Allow PR author to toggle WIP status
* refactors and restyling, remove links from translations
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
zeripath [Thu, 27 May 2021 18:46:11 +0000 (19:46 +0100)]
Allow Token/Basic auth on raw paths (#15987)
It appears that people have been using token authentication to navigate to raw paths
and recent changes have broken this. Whilst ideally these paths would not be being used
like this - it was not the intention to be a breaking change.
This PR restores access to these paths.
Fix #13772
Signed-off-by: Andrew Thornton <art27@cantab.net>
a1012112796 [Thu, 27 May 2021 16:08:46 +0000 (00:08 +0800)]
add permission check for ``GenerateRepository`` (#15946)
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Kyle D [Thu, 27 May 2021 01:07:39 +0000 (19:07 -0600)]
Fix extra curly brace breaking release compare (#15988)
zeripath [Thu, 27 May 2021 01:01:07 +0000 (02:01 +0100)]
Fix setting of SameSite on cookies (#15989)
Fix #15972
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
techknowlogick [Wed, 26 May 2021 22:03:39 +0000 (18:03 -0400)]
follow redirect when fetching theme archive (#15986)
a1012112796 [Wed, 26 May 2021 16:13:00 +0000 (00:13 +0800)]
not show link to migration on repo reate page when it was disabled (#15957)
* not show link to migration on repo reate page when it was disabled
Signed-off-by: a1012112796 <1012112796@qq.com>
* fix lint
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath [Wed, 26 May 2021 02:50:35 +0000 (03:50 +0100)]
Use filepath.ToSlash and Join in indexer defaults and queues (#15971)
As revealed by #15964 there is inconsistent use of filepath Join and path Join
for these directories. The best thing to do is to use filepath.Join but then ToSlash
them for consistency.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
GiteaBot [Wed, 26 May 2021 00:04:32 +0000 (00:04 +0000)]
[skip ci] Updated translations via Crowdin
fnetX (aka fralix) [Tue, 25 May 2021 20:02:37 +0000 (22:02 +0200)]
Remove branch URL before IssueRefURL (#15968)
Revert change for account / org dashboard where IssueRefURLs do not
contain the full repo URL (case RepoLink is not true)
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Remove trailing whitespace from PR review
Viktor Yakovchuk [Mon, 24 May 2021 14:57:46 +0000 (17:57 +0300)]
Add possibility to make branch in branch page (#15960)
* Add possibility to make branch in branch page (#15911)
Add possibility to make branch in branch page
in the area next to Download and Delete buttons.
It is a more intuitive place in the interface
compared to what is already there.
Signed-off-by: Viktor Yakovchuk <viktor@yakovchuk.net>
* Update templates/repo/branch/list.tmpl
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Sun, 23 May 2021 23:23:55 +0000 (00:23 +0100)]
Change default queue settings to be low go-routines (#15964)
This PR suggests a change to the default configuration for queues:
* Use a common DATADIR for the queues
* Set starting workers to 0 and make boost a single worker
Signed-off-by: Andrew Thornton <art27@cantab.net>
KN4CK3R [Sun, 23 May 2021 14:14:03 +0000 (16:14 +0200)]
Make tasklist checkboxes clickable (#15791)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
silverwind [Sun, 23 May 2021 00:45:39 +0000 (02:45 +0200)]
Remove fomantic accordion module (#15951)
Replace it with native <detail> element. Did some slight restyling on
the release downloads, new behaviour should be exactly the same
otherwise.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind [Sat, 22 May 2021 21:29:46 +0000 (23:29 +0200)]
Remove remaining fontawesome usage in templates (#15952)
Can not remove the dependency yet because easymde depends on it.
Ikko Ashimine [Sat, 22 May 2021 14:46:33 +0000 (23:46 +0900)]
Update pull_request_template.md (#15948)
Branch name
- master -> main
KN4CK3R [Sat, 22 May 2021 06:47:16 +0000 (08:47 +0200)]
Add email headers (#15939)
* Added additional email headers.
* Added tests.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind [Sat, 22 May 2021 01:18:43 +0000 (03:18 +0200)]
Double the avatar size factor (#15941)
* Double the avatar size factor
This results on finer Avatar rendering on Hi-DPI display.
* fix test
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot [Sat, 22 May 2021 00:04:28 +0000 (00:04 +0000)]
[skip ci] Updated translations via Crowdin
Patrick Schratz [Fri, 21 May 2021 22:11:48 +0000 (00:11 +0200)]
Bump `postgres` and `mysql` versions (#15710)
* bump postgres and mysql DB versions
* posgres test against v10
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
a1012112796 [Fri, 21 May 2021 21:37:16 +0000 (05:37 +0800)]
add a new internal hook to save ssh log (#15787)
* add a new internal hook to save ssh log
as title, when a ssh error ocure like #15785.
only when switch ``RUN_MODE`` to dev can we
found which error is ocure. But this way is
not a good idea for production envirment.
this changes try save ssh error mesage to the
log file like other log by a new internal hook.
I think it's usefull for find error message
in production envirment. Thanks.
Signed-off-by: a1012112796 <1012112796@qq.com>
* rename and fix nit
* Update modules/private/hook.go
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Norwin [Fri, 21 May 2021 17:03:27 +0000 (17:03 +0000)]
fix default avatar url (#15938)
Steven [Fri, 21 May 2021 04:03:41 +0000 (06:03 +0200)]
Add curl to rootless docker image (#15908)
Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
sebastian-sauer [Thu, 20 May 2021 21:53:55 +0000 (23:53 +0200)]
Fix layout of milestone view (#15927)
fix #15047
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind [Thu, 20 May 2021 20:37:20 +0000 (22:37 +0200)]
Use node 16 on release tasks too (#15936)
Forgot these in https://github.com/go-gitea/gitea/pull/15804.
zeripath [Thu, 20 May 2021 08:29:57 +0000 (09:29 +0100)]
Encrypt LDAP bind password in db with SECRET_KEY (#15547)
* Encrypt LDAP bind password in db with SECRET_KEY
The LDAP source bind password are currently stored in plaintext in the db
This PR simply encrypts them with the setting.SECRET_KEY.
Fix #15460
Signed-off-by: Andrew Thornton <art27@cantab.net>
* remove ui warning regarding unencrypted password
Co-authored-by: silverwind <me@silverwind.io>
GiteaBot [Thu, 20 May 2021 00:25:08 +0000 (00:25 +0000)]
[skip ci] Updated translations via Crowdin