Gusted
d623126103
Merge pull request '[PORT] Refactor the usage of batch catfile (gitea#31754)' ( #5122 ) from gusted/forgejo-port-gt-31754 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5122
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-26 16:04:47 +00:00
Earl Warren
190b5a3859
Merge pull request '[FIX] Don't allow SSH authentication without ssh executable' ( #5123 ) from gusted/forgejo-prevent-no-ssh into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5123
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-26 08:03:52 +00:00
Earl Warren
e2ae389184
Merge pull request '[CHORE] Move to new sessioner library' ( #5090 ) from gusted/forgejo-sessioner-fork into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5090
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-26 07:31:56 +00:00
Earl Warren
2514ba4e36
Merge pull request '[CHORE] Remove unused `exclude`' ( #5118 ) from gusted/forgejo-tidy-gomod into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5118
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-26 07:28:52 +00:00
Gusted
1a68d14cf8
[FIX] Don't allow SSH authentication without ssh executable
...
- Follow up of #4819
- When no `ssh` executable is present, disable the UI and backend bits
that allow the creation of push mirrors that use SSH authentication. As
this feature requires the usage of the `ssh` binary.
- Integration test added.
2024-08-26 08:58:35 +02:00
Gusted
b44dcf553c
[TESTS] Fix usage of `LoadRepoCommit`
...
It loads the Commit with a temporary open GitRepo. This is incorrect,
the GitRepo should be open as long as the Commit can be used. This
mainly removes the usage of this function as it's not needed.
2024-08-26 08:03:48 +02:00
Gusted
a5b51e9145
Merge pull request 'Update renovate to v38.52.3 (forgejo)' ( #5119 ) from renovate/forgejo-renovate into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5119
2024-08-26 05:02:21 +00:00
Renovate Bot
fbe464309b
Update renovate to v38.52.3
2024-08-26 04:05:34 +00:00
Gusted
5541537b1b
Merge pull request 'Update module github.com/go-enry/go-enry/v2 to v2.8.9 (forgejo)' ( #5120 ) from renovate/forgejo-github.com-go-enry-go-enry-v2-2.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5120
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-26 02:53:41 +00:00
Gusted
24bbf051c3
[TESTS] Add test for CatFileBatch(Check)
2024-08-26 04:48:52 +02:00
Renovate Bot
ec4e648e3a
Update module github.com/go-enry/go-enry/v2 to v2.8.9
2024-08-26 02:05:27 +00:00
Lunny Xiao
0ca13c5eae
[PORT] Refactor the usage of batch catfile (gitea#31754)
...
When opening a repository, it will call `ensureValidRepository` and also
`CatFileBatch`. But sometimes these will not be used until repository
closed. So it's a waste of CPU to invoke 3 times git command for every
open repository.
This PR removed all of these from `OpenRepository` but only kept
checking whether the folder exists. When a batch is necessary, the
necessary functions will be invoked.
---
Conflict resolution: Because of the removal of go-git in (#4941 )
`_nogogit.go` files were either renamed or merged into the 'common'
file. Git does handle the renames correctly, but for those that were
merged has to be manually copied pasted over. The patch looks the same,
201 additions 90 deletions as the original patch.
(cherry picked from commit c03baab678ba5b2e9d974aea147e660417f5d3f7)
2024-08-26 03:48:51 +02:00
Gusted
3af7e03aeb
[CHORE] Remove unused `exclude`
...
This was introduced in https://github.com/go-gitea/gitea/pull/18311 to
exclude a vulnerable dependency. I am not sure when this happened or
with which dependency update, but this dependency is no longer being
used by another dependency and therefore these `exclude`s are no longer
needed. (Verified via `go mod graph`).
2024-08-26 03:31:07 +02:00
Gusted
cbedd7e5be
Merge pull request '[PORT] Enable `no-jquery/no-class-state` (gitea#31639) & Remove `eslint-plugin-jquery` (gitea#31402)' ( #5107 ) from gusted/forgejo-port-gt-31402 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5107
Reviewed-by: Caesar Schinas <caesar@caesarschinas.com>
2024-08-26 00:01:43 +00:00
Gusted
e726b7ec3b
Merge pull request '[SKIP CI] Don't duplicate key' ( #5115 ) from gusted/forgejo-translation-unique-key into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5115
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2024-08-25 16:20:22 +00:00
Gusted
5c2445d643
[SKIP CI] Don't duplicate key
...
- Follow up #4819 .
- It introduces a duplicate key, which is wrong. Move to a unique
translation key to avoid conflicts.
2024-08-25 18:07:22 +02:00
Otto
32735b1e61
Merge pull request '[TESTS] Move `CreateDeclarativeRepo` to more accessible location' ( #5108 ) from gusted/forgejo-chore-declerative-repo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5108
Reviewed-by: Gergely Nagy <algernon@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
2024-08-25 11:15:22 +00:00
Gusted
fc40a5e242
[CHORE] Move to new sessioner library
...
- Moves to a fork of gitea.com/go-chi/session that removed support for
couchbase (and ledis, but that was never made available in Forgejo)
along with other code improvements.
f8ce677595
..main
- The rationale for removing Couchbase is quite simple. Its not licensed
under FOSS
license (https://www.couchbase.com/blog/couchbase-adopts-bsl-license/ )
and therefore cannot be tested by Forgejo and shouldn't be supported.
This is a similair vein to the removal of MSSQL
support (https://codeberg.org/forgejo/discussions/issues/122 )
- A additional benefit is that this reduces the Forgejo binary by ~600Kb.
2024-08-25 03:47:08 +02:00
Gusted
d34d8ec2cf
Merge pull request 'fix: include last line in file previews with no trailing newline' ( #5085 ) from solomonv/fix-previews-without-trailing-eol into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5085
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-25 00:58:14 +00:00
silverwind
98349a1889
[PORT] Enable `no-jquery/no-class-state` (gitea#31639)
...
Just 4 validations and I specifically tested this by
selecting/unselecting issue labels.
Co-authored-by: Giteabot <teabot@gitea.io>
---
Clean port. Fixed two additional warnings
(cherry picked from commit 3a7454df7a518f810fbeb34b9d784e7c29d173ff)
2024-08-25 02:57:50 +02:00
Gusted
f78e397dd6
[TESTS] Move `CreateDeclarativeRepo` to more accessible location
...
- This allows `CreateDeclarativeRepo` to be used by other testing
packages such as E2EE testing.
- Removes unused function in `services/webhook/sourcehut/builds_test.go`.
2024-08-25 02:54:43 +02:00
Gusted
4f54918381
Merge pull request 'fix(ui): prevent exceptions on other users' repo migration pages' ( #4875 ) from solomonv/forgejo:fix-migration-guest-exception into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4875
Reviewed-by: Caesar Schinas <caesar@caesarschinas.com>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 23:49:20 +00:00
Solomon Victorino
8f53a69c2e
fix: include last line in file previews with no trailing newline
2024-08-24 17:10:31 -06:00
silverwind
04cd89709c
[PORT] Remove `eslint-plugin-jquery` (gitea#31402)
...
- Remove `eslint-plugin-jquery` as `eslint-plugin-no-jquery` does all it
does and is actually the maintained fork of it.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
---
Modification: Only keep removal of eslint-plugin-jquery
(cherry picked from commit 17baf1af10de025a47ade1f16f1e5c51646d7fcf)
2024-08-25 00:48:47 +02:00
Gusted
78e4736db6
Merge pull request '[BUG] First user created through reverse proxy should be admin' ( #4549 ) from gusted/forgejo-reverseproxy-admin into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4549
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Radosław Piliszek <radek@piliszek.it>
2024-08-24 22:45:32 +00:00
Gusted
1cab8788c8
Merge pull request 'Update dependency eslint-plugin-unicorn to v55 (forgejo)' ( #5098 ) from renovate/forgejo-eslint-plugin-unicorn-55.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5098
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 22:40:27 +00:00
Gusted
a611ad3536
Merge pull request 'Update dependency mermaid to v11 (forgejo)' ( #5100 ) from renovate/forgejo-mermaid-11.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5100
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 21:34:08 +00:00
Gusted
b061a14e15
[PORT] Unicorn eslint plugins configs
...
Ported from https://github.com/go-gitea/gitea/pull/31766 &
https://github.com/go-gitea/gitea/pull/31402 & https://github.com/go-gitea/gitea/pull/30840
2024-08-24 22:31:34 +02:00
Renovate Bot
9272425bab
Update dependency eslint-plugin-unicorn to v55
2024-08-24 22:31:33 +02:00
Gusted
4575b58da3
[CHORE] Remove elkjs hack
2024-08-24 22:13:32 +02:00
Renovate Bot
ed29b9e423
Update dependency mermaid to v11
2024-08-24 20:02:22 +00:00
Gusted
a72be741d4
Merge pull request 'Update module github.com/google/go-github/v63 to v64 (forgejo)' ( #5101 ) from renovate/forgejo-github.com-google-go-github-v63-64.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5101
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 18:43:11 +00:00
Gusted
696cbde942
Merge pull request 'Update dependency happy-dom to v15 (forgejo)' ( #5099 ) from renovate/forgejo-happy-dom-15.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5099
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 17:47:52 +00:00
Gusted
8583ffa598
Merge pull request 'Update dependency eslint-plugin-sonarjs to v2 (forgejo)' ( #5097 ) from renovate/forgejo-eslint-plugin-sonarjs-2.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5097
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 17:37:23 +00:00
Gusted
bef1c643b6
Merge pull request 'Update dependency eslint-plugin-github to v5 (forgejo)' ( #5096 ) from renovate/forgejo-eslint-plugin-github-5.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5096
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 17:37:08 +00:00
Gusted
5dbacb70f4
Merge pull request 'Allow pushmirror to use publickey authentication' ( #4819 ) from ironmagma/forgejo:publickey-auth-push-mirror into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4819
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-24 16:53:56 +00:00
Gusted
931a6f16dc
[CHORE] Fix go-licenses
2024-08-24 18:34:28 +02:00
Renovate Bot
c111730d08
Update module github.com/google/go-github/v63 to v64
2024-08-24 16:05:36 +00:00
Renovate Bot
cec6b0041a
Update dependency happy-dom to v15
2024-08-24 16:04:36 +00:00
Renovate Bot
f0482675dd
Update dependency eslint-plugin-sonarjs to v2
2024-08-24 16:04:06 +00:00
Renovate Bot
2129bf04a1
Update dependency eslint-plugin-github to v5
2024-08-24 16:03:51 +00:00
Gusted
eb25bc9edb
Merge pull request 'fix: Do not scan all Go files for tailwind classes' ( #5092 ) from fnetx/tailwind into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5092
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 14:59:00 +00:00
Otto Richter
85a0f1df1c
fix: Do not scan all Go files for tailwind classes
...
Reduces some noise in the index.css file and adds a comment why it was done in the first place.
2024-08-24 15:45:50 +02:00
Earl Warren
2117aeabca
Merge pull request 'Update module code.forgejo.org/forgejo/act to v1.21.2 (forgejo)' ( #5087 ) from renovate/forgejo-code.forgejo.org-forgejo-act-1.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5087
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-08-24 05:38:09 +00:00
Gusted
dc6bd5c697
Merge pull request 'Update dependency webpack to v5.94.0 (forgejo)' ( #5088 ) from renovate/forgejo-webpack-5.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5088
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 02:55:19 +00:00
Gusted
793dcfed34
Merge pull request 'Update dependency @github/relative-time-element to v4.4.3 (forgejo)' ( #5086 ) from renovate/forgejo-github-relative-time-element-4.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5086
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-24 02:07:53 +00:00
Renovate Bot
ffdfe8817c
Update dependency webpack to v5.94.0
2024-08-24 02:03:09 +00:00
Renovate Bot
ae8a692d8b
Update module code.forgejo.org/forgejo/act to v1.21.2
2024-08-24 00:04:15 +00:00
Renovate Bot
276df16488
Update dependency @github/relative-time-element to v4.4.3
2024-08-24 00:03:36 +00:00
Gusted
904e1239a8
Merge pull request 'fix: improve the display of PR & issue short links' ( #5075 ) from solomonv/pr-short-link-text-fixes into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5075
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-08-23 21:30:04 +00:00