Aly Sewelam
a4ccf65011
use config option for default wiki format paths
...
- listing of wiki pages now depends on option and defaults to markdown
only
2025-11-26 17:25:30 +02:00
Aly Sewelam
f0c005be7d
Add DefaultWikiFormat var and its checks
2025-11-26 16:33:31 +02:00
Aly Sewelam
997ce9ffd1
Add default wiki format setting value to struct
2025-11-26 11:53:34 +02:00
Aly Sewelam
e2812ca259
Resolve linting issues
...
Modernise string suffix check with CutSuffix
Added nilcheck for entry after the org version check attempt
2025-11-24 13:30:06 +02:00
Aly Sewelam
83353a88bc
Add .org to Git path preparation
...
markdown files still take priority over org files if both are present
2025-11-24 12:31:37 +02:00
Aly Sewelam
676a7856ac
add .org to WebPathToUserTitle
2025-11-24 12:31:37 +02:00
Aly Sewelam
3ae4823383
Add org file path resolution for Web and Git paths
2025-11-24 12:31:37 +02:00
Aly Sewelam
36c23b8b8a
Add .org condition to escapeSegToWeb
2025-11-24 12:31:37 +02:00
Aly Sewelam
3931b8fc83
Add .org file detection to WikiRaw function
2025-11-24 12:31:37 +02:00
Aly Sewelam
51b76806b4
Detect markup type instead of defaulting to .md
...
This handles .org files markup detection
2025-11-24 12:31:37 +02:00
Aly Sewelam
cb38c046b2
Handle .org files in Sidebar and footer of wiki
...
Used Git filename to properly handle .org files
2025-11-24 12:31:37 +02:00
Aly Sewelam
cb9334414a
Detect .org files if .md isn't found in wiki
...
Resort to raw file if neither is found too.
2025-11-24 12:31:37 +02:00
Aly Sewelam
30254b941b
Detect markup rendering from filename
...
Instead of hard coding it to be markdown only and allow for org files to
be detected and rendered properly
2025-11-24 12:31:37 +02:00
688430e3ce
Allow admins to rename non-local users ( #35970 )
...
Presently, attempting to rename a non-local (e.g. Oauth2 or LDAP) user
results in an error, even if the requester is an administrator. As far
as I can tell, this is a security feature, not architectural in nature,
as automatic account linking could be used to take control of another
user's account. This is not a concern for an administrator, who we
should trust to know what they are doing.
This patch allows admins, and only admins, to rename non-local users.
Fixes https://github.com/go-gitea/gitea/issues/18308 (sort of)
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-23 20:59:55 +00:00
wxiaoguang and GitHub
87d5a8507d
Add "site admin" back to profile menu ( #36010 )
...
Fix #35904
2025-11-23 22:29:58 +02:00
Zettat123 and GitHub
ed977d9702
Use GitHub-style commit message for squash merge ( #35987 )
2025-11-22 09:20:45 -08:00
62d750eadb
Fix various permission & login related bugs ( #36002 )
...
Permission & protection check:
- Fix Delete Release permission check
- Fix Update Pull Request with rebase branch protection check
- Fix Issue Dependency permission check
- Fix Delete Comment History ID check
Information leaking:
- Show unified message for non-existing user and invalid password
- Fix #35984
- Don't expose release draft to non-writer users.
- Make API returns signature's email address instead of the user
profile's.
Auth & Login:
- Avoid GCM OAuth2 attempt when OAuth2 is disabled
- Fix #35510
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-22 07:16:08 +00:00
a60a8c6966
Allow empty commit when merging pull request with squash style ( #35989 )
...
Before this PR, when merging an empty PR with squash style will result
in 500.
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-22 06:02:25 +00:00
GiteaBot
4c51acb26b
[skip ci] Updated translations via Crowdin
2025-11-21 00:37:11 +00:00
Sandro Santilli and GitHub
543e3bf7e9
Mention proc-receive in text for dashboard.resync_all_hooks func ( #35991 )
2025-11-20 19:27:08 -05:00
silverwind and GitHub
1baca49870
Update JS deps ( #35978 )
...
Update JS deps, regenerate SVGs, fixed lint issues and did cursory
testing of UI.
2025-11-20 21:53:44 +00:00
Gary Wang and GitHub
afc25c5145
wiki: reuse selectable style for wiki ( #35990 )
...
This patch amends https://github.com/go-gitea/gitea/pull/27507 .
Since https://github.com/go-gitea/gitea/pull/35072 , `selectable` css
class can be used for providing hover effect for tables. This patch let
the wiki page be able to make use of that css class, and we can safely
remove the custom css for this purpose.
Behavior is not changed.
----
Side note: I made this patch locally months ago but completely forget to
submit it as a PR 😂
2025-11-20 21:23:14 +00:00
98eb2b0aba
Bump golang.org/x/crypto from 0.43.0 to 0.45.0 ( #35985 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from
0.43.0 to 0.45.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/golang/crypto/commit/4e0068c0098be10d7025c99ab7c50ce454c1f0f9 "><code>4e0068c</code></a>
go.mod: update golang.org/x dependencies</li>
<li><a
href="https://github.com/golang/crypto/commit/e79546e28b85ea53dd37afe1c4102746ef553b9c "><code>e79546e</code></a>
ssh: curb GSSAPI DoS risk by limiting number of specified OIDs</li>
<li><a
href="https://github.com/golang/crypto/commit/f91f7a7c31bf90b39c1de895ad116a2bacc88748 "><code>f91f7a7</code></a>
ssh/agent: prevent panic on malformed constraint</li>
<li><a
href="https://github.com/golang/crypto/commit/2df4153a0311bdfea44376e0eb6ef2faefb0275b "><code>2df4153</code></a>
acme/autocert: let automatic renewal work with short lifetime certs</li>
<li><a
href="https://github.com/golang/crypto/commit/bcf6a849efcf4702fa5172cb0998b46c3da1e989 "><code>bcf6a84</code></a>
acme: pass context to request</li>
<li><a
href="https://github.com/golang/crypto/commit/b4f2b62076abeee4e43fb59544dac565715fbf1e "><code>b4f2b62</code></a>
ssh: fix error message on unsupported cipher</li>
<li><a
href="https://github.com/golang/crypto/commit/79ec3a51fcc7fbd2691d56155d578225ccc542e2 "><code>79ec3a5</code></a>
ssh: allow to bind to a hostname in remote forwarding</li>
<li><a
href="https://github.com/golang/crypto/commit/122a78f140d9d3303ed3261bc374bbbca149140f "><code>122a78f</code></a>
go.mod: update golang.org/x dependencies</li>
<li><a
href="https://github.com/golang/crypto/commit/c0531f9c34514ad5c5551e2d6ce569ca673a8afd "><code>c0531f9</code></a>
all: eliminate vet diagnostics</li>
<li><a
href="https://github.com/golang/crypto/commit/0997000b45e3a40598272081bcad03ffd21b8adb "><code>0997000</code></a>
all: fix some comments</li>
<li>Additional commits viewable in <a
href="https://github.com/golang/crypto/compare/v0.43.0...v0.45.0 ">compare
view</a></li>
</ul>
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-19 20:10:35 -08:00
GiteaBot
adece922f1
[skip ci] Updated translations via Crowdin
2025-11-20 00:36:24 +00:00
1da1e644ed
Misc CSS fixes ( #35888 )
...
Fixes: https://github.com/go-gitea/gitea/issues/35913
Fixes: https://github.com/go-gitea/gitea/issues/35942
Contains a number of minor CSS fixes.
---------
Signed-off-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-19 03:02:41 +00:00
wxiaoguang and GitHub
e1372e5bc1
Make composer registry support tar.gz and tar.bz2 and fix bugs ( #35958 )
...
Fix #35957
2025-11-18 23:15:50 +00:00
DrMaxNix and GitHub
de69e7f16a
Change project default column icon to 'star' ( #35967 )
...
Consistently use a `star` icon to highlight the default column of a
project.
The icon is both shown while viewing the project, as well as while
changing the default status of this column.
<img width="1065" height="370" alt="image"
src="https://github.com/user-attachments/assets/1ca5773d-8eec-4b90-ad0b-22b1f4bd4cfd "
/>
2025-11-18 10:55:27 +02:00
wxiaoguang and GitHub
0fb3be7f0e
Fix diff blob excerpt expansion ( #35922 )
...
And add comments and tests
2025-11-14 04:50:48 +00:00
Daniel Mach and GitHub
d6dc531d4b
Add GITEA_PR_INDEX env variable to githooks ( #35938 )
...
`GITEA_PR_ID` is already part of the env variables available in the
githooks, but it contains a database ID instead of commonly used index
that is part of `owner/repo!index`
2025-11-14 04:21:05 +00:00
wxiaoguang and GitHub
358de23a50
Fix container push tag overwriting ( #35936 )
...
Fix #35853
2025-11-14 03:49:57 +00:00
Lunny Xiao and GitHub
018156079b
Upgrade deps golang.org/x/crypto ( #35952 )
2025-11-14 03:19:51 +00:00
wxiaoguang and GitHub
1f3558b65c
Fix corrupted external render content ( #35946 )
...
Fix #35944
2025-11-14 08:31:11 +08:00
wxiaoguang and GitHub
b95fd7e13e
Don't show unnecessary error message to end users for DeleteBranchAfterMerge ( #35937 )
2025-11-13 07:03:13 +08:00
wxiaoguang and GitHub
372d24b84b
Limit reading bytes instead of ReadAll ( #35928 )
2025-11-12 19:44:49 +08:00
2223be2cc4
Support blue yellow colorblind theme ( #35910 )
...
This icon is from GitHub:
<img width="350" height="350" alt="image"
src="https://github.com/user-attachments/assets/c3f31901-5359-4b7f-ae68-eddcec63df53 "
/>
---------
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com >
2025-11-11 18:21:15 +00:00
wxiaoguang and GitHub
9affb513a8
Load jQuery as early as possible to support custom scripts ( #35926 )
...
Fix #35923
2025-11-12 00:11:46 +08:00
wxiaoguang and GitHub
e31f224ad2
Make OAuth2 issuer configurable ( #35915 )
...
The new (correct) behavior breaks the old (incorrect) logins.
Add a config option to support legacy "issuer".
Fix #35830
2025-11-10 23:45:01 +08:00
1c8c56503f
Allow to display embed images/pdfs when SERVE_DIRECT was enabled on MinIO storage ( #35882 )
...
Releated issue: https://github.com/go-gitea/gitea/issues/30487
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-09 21:31:25 -08:00
60314cb688
Add proper page title for project pages ( #35773 )
...
Fix #35763
Co-authored-by: Mithilesh Gupta <guptamithilesh@protonmail.com >
2025-11-09 21:54:34 +00:00
Alberty Pascal and GitHub
c4c4cf5687
Use correct form field for allowed force push users in branch protection API ( #35894 )
...
Test was wrong and preventing update of force push allow users list by
the API
Resolves #35893
Signed-off-by: Alberty Pascal <github@albertyorban.be >
2025-11-09 21:23:46 +00:00
wxiaoguang and GitHub
050c9485df
Fix team member access check ( #35899 )
...
Fix #35499
2025-11-09 03:13:31 +00:00
techknowlogick and GitHub
919348665b
Add ability for local makefile with personal customizations that wouldnt affect remote repo ( #35836 )
...
This would allow developers to keep a local file that'd add personal
makefile targets for niche convenience customization without having to
have the git workspace polluted with uncommitted changes.
---------
Signed-off-by: techknowlogick <techknowlogick@gitea.com >
2025-11-08 20:23:55 +00:00
silverwind and GitHub
c12bc4aa30
Add toolchain directive to go.mod ( #35901 )
...
From [docs](https://go.dev/doc/toolchain#config ):
> The go line declares the minimum required Go version for using the
module or workspace. For compatibility reasons, if the go line is
omitted from a go.mod file, the module is considered to have an implicit
go 1.16 line, and if the go line is omitted from a go.work file, the
workspace is considered to have an implicit go 1.18 line.
> The toolchain line declares a suggested toolchain to use with the
module or workspace. As described in “[Go toolchain
selection](https://go.dev/doc/toolchain#select )” below, the go command
may run this specific toolchain when operating in that module or
workspace if the default toolchain’s version is less than the suggested
toolchain’s version. If the toolchain line is omitted, the module or
workspace is considered to have an implicit toolchain goV line, where V
is the Go version from the go line.
This is better than setting `go` to the latest version which may break
builds when that go version is unavailable, for example with
`GOTOOLCHAIN=local` in the official go docker images.
2025-11-08 19:48:16 +00:00
鲁汀 and GitHub
367a289b29
Display source code downloads last for release attachments ( #35897 )
2025-11-08 16:08:59 +00:00
Luohao Wang and GitHub
bfaddbcd0d
Fix conda null depend issue ( #35900 )
...
Fix #35895
2025-11-08 23:29:17 +08:00
wxiaoguang and GitHub
0ce7d66368
Fix avatar upload error handling ( #35887 )
...
Fix #35884
2025-11-07 09:44:09 +08:00
silverwind and GitHub
b2feeddf42
Move gitea-vet to use go tool ( #35878 )
...
Add it as a [tool
dependency](https://go.dev/doc/modules/managing-dependencies#tools ),
eliminating the need for `build.go`.
2025-11-06 21:09:31 +01:00
eef9406c6b
Contribution heatmap improvements ( #35876 )
...
1. Set a fixed height on the element, preventing the content after the
element from shifting on page load. This uses CSS [container query
length
units](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units )
as I saw no other way because of the non-linear scaling of the element.
2. Move the "total-contributions" text into the existing vue slot,
eliminating the need for absolute positioning.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-06 09:23:48 +01:00
silverwind and GitHub
aaa8033ee9
Update to go 1.25.4 ( #35877 )
...
https://tip.golang.org/doc/devel/release#go1.25.4
2025-11-06 07:04:38 +01:00
silverwind and GitHub
23a37b4b77
Remove padding override on .ui .sha.label ( #35864 )
...
Since upgrading to v1.25, I noticed the SHA labels have slightly
different padding than before. I can't pinpoint exactly which change it
was. Fix it by removing the padding override on `.ui .sha.label` and
make the one on`.ui.label` (`2px 6px`) take effect which matches 1.24
rendering.
Before:
<img width="135" height="172" alt="image"
src="https://github.com/user-attachments/assets/2781a854-be08-4a11-bde0-d3699b2b7454 "
/>
After:
<img width="139" height="162" alt="image"
src="https://github.com/user-attachments/assets/5c864fa3-c1f9-4452-ae58-5411dd445865 "
/>
2025-11-06 01:32:39 +00:00