aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Valid email address should only start with alphanumeric (#28174)Dejan Kitic2025-04-203-10/+43
| | | | | | | | | | | | This fixes issue #27847 where regular expression allowed email address to start with special symbols. Valid email addresses should start with alphanumeric character, and as such will be rendered as email. Added test cases from the bug report to validate, such input will not be rendered anymore as email address. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix notify watch failure when the content is too long (#34233)Lunny Xiao2025-04-201-15/+15
| | | | | | | Fix #28193 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add "--fullname" arg to gitea admin user create (#34241)Eric Hawicz2025-04-192-11/+31
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various UI problems (#34243)wxiaoguang2025-04-1912-59/+43
| | | Also fix #34242
* markup: improve code block readability and isolate copy button (#34009)D2025-04-195-25/+95
| | | | | | | | Fix #33197 Improve the rendering of code blocks in markdown content for better readability and UI stability across screen sizes. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Don't assume the default wiki branch is master in the wiki API (#34244)Kemal Zebari2025-04-191-4/+4
| | | | | | Resolves #34218. In the recent past, the default wiki branch was made to be changeable. This change reflects this.
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-191-0/+17
|
* Optimize the calling code of queryElems (#34235)Kerwin Bryant2025-04-198-17/+11
|
* Actions Runner rest api (#33873)ChristopherHX2025-04-1815-7/+1519
| | | | | | | | | | | | | | | | | | | | | | | | | Implements runner apis based on https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-organization - Add Post endpoints for registration-token, google/go-github revealed this as problem - We should deprecate Get Endpoints, leaving them for compatibility - Get endpoint of admin has api path /admin/runners/registration-token that feels wrong, /admin/actions/runners/registration-token seems more consistent with user/org/repo api - Get Runner Api - List Runner Api - Delete Runner Api - Tests admin / user / org / repo level endpoints Related to #33750 (implements point 1 and 2) Via needs discovered in #32461, this runner api is needed to allow cleanup of runners that are deallocated without user interaction. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some trivial problems (#34237)wxiaoguang2025-04-183-8/+7
| | | | | | | 1. Using existing "content" variable in `swift.go` 2. Do not report 500 server error in `GetPullDiffStats` middleware, otherwise a PR missing ref won't be able to view. 3. Fix the abused "label button" when listing commits, there was too much padding space, see the screenshot below.
* Swift files can be passed either as file or as form value (#34068)Wolfgang Reithmeier2025-04-183-15/+123
| | | | | | | Fix #33990 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various misalignments and overflows (#34227)Kerwin Bryant2025-04-1717-38/+32
| | | | | --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update net package (#34228)Lunny Xiao2025-04-172-3/+3
|
* Fix button alignments and remove unnecessary styles (#34206)Kerwin Bryant2025-04-1622-166/+98
| | | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix project board links to related Pull Requests (#34213)badhezi2025-04-161-1/+1
| | | Resolves https://github.com/go-gitea/gitea/issues/34181
* Fix empty repo clone panel border (#34219)Kerwin Bryant2025-04-161-3/+6
| | | | | | | Remove duplicate border --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix: quoted replies incorrectly render user input as part of the quote (#34216)Hyungsub (Danny) Kim2025-04-161-1/+1
| | | | | | | Updated the quote insertion logic so that it adds one more line break (`\n`) work like Github. This way, the cursor lands on a new line and the user's reply is no longer interpreted as part of the quote. Fixes #34177
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-162-0/+2
|
* Fix two missed null value checks on the wiki page. (#34205)Kerwin Bryant2025-04-152-2/+2
| | | | | | | | | before: ![image](https://github.com/user-attachments/assets/83e5513f-a4fa-406d-a010-8ec8cd873203) after: ![image](https://github.com/user-attachments/assets/6bca76c7-0445-429a-92b1-1a9f96d6daca)
* Improve "lock conversation" UI (#34207)wxiaoguang2025-04-151-21/+13
| | | Fix #34203
* Mark parent directory as viewed when all files are viewed (#33958)Kerwin Bryant2025-04-1515-278/+311
| | | | | | | | Fix #25644 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Restore form inputs on organization create error (#34201)bytedream2025-04-152-5/+8
| | | | | | Keeps the entered inputs when the "organization create" request returns an error. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Align User Details Page Header Layout with Design Specifications (#34192)Kerwin Bryant2025-04-151-12/+3
|
* bump vite to 6.2.6 (#34202)techknowlogick2025-04-151-3/+3
|
* feat: add riscv64 support (#34199)Meng Zhuo2025-04-147-6/+17
|
* Update RepoContributors.vue (#34194)Kerwin Bryant2025-04-142-3/+8
|
* Add middleware for request prioritization (#33951)Rowan Bohde2025-04-1410-2/+301
| | | | | | | | | | | | | | | | | | | This adds a middleware for overload protection that is intended to help protect against malicious scrapers. It does this via [`codel`](https://github.com/bohde/codel), which will perform the following: 1. Limit the number of in-flight requests to some user-defined max 2. When in-flight requests have reached their begin queuing requests. Logged-in requests having priority above logged-out requests 3. Once a request has been queued for too long, it has a probabilistic chance to be rejected based on how overloaded the entire system is. When a server experiences more traffic than it can handle, this keeps latency low for logged-in users and rejects just enough requests from logged-out users to not overload the service. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Update protected_branch.tmpl (#34193)Kerwin Bryant2025-04-141-3/+7
| | | | | | | Show correct message for new/edit. Add "required" to rule name. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix package upload temp path (#34196)wxiaoguang2025-04-142-16/+17
| | | | | Fix #34195 The temp dir should be created when it is used.
* Fix bug when migrating repository (#34182)Lunny Xiao2025-04-1412-17/+19
| | | This PR fixed a bug which is a regression from #31035
* fix github migration error when using multiple tokens (#34144)TheFox0x72025-04-132-1/+50
| | | | | | | | | | Git authorization was not taking into account multiple token feature, leading to auth failures Closes: https://github.com/go-gitea/gitea/issues/34141 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add package version api endpoints (#34173)KN4CK3R2025-04-135-78/+332
| | | | | | | | | Fixes #33544 Adds two new api endpoints to list a versions of a package and to get the latest version of a package by API. ⚠️ BREAKING ⚠️ the `size` field for this endpoint changes from `Size` to `size`.
* Fix incorrect file links (#34189)wxiaoguang2025-04-139-19/+17
| | | | | | | | | | Fix #34188 The name "FileName" is ambiguous: sometimes it is "base name without path", sometimes it is "full name with path". The ambiguous name causes various problems. This PR clarifies the usage: `FileTreePath`: the full name with path.
* Add cache for common package queries (#22491)KN4CK3R2025-04-134-208/+150
| | | | | | | | | | This adds a cache for common package queries in `GetPackageDescriptor`. Code which needs to process a list of packages benefits from this change. This skips 350 queries in the package integration tests for example. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Allow admins and org owners to change org member public status (#28294)Tomeamis2025-04-133-132/+171
| | | | | | | | | | | | | | Allows admins and org owners to change org member public status. Before, this would return `Error 403: Cannot publicize another member` despite the fact that the same user could make the same change through the GUI. Fixes #28372 --------- Co-authored-by: Tomáš Ženčák <zencak@ica.cz> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix span svg layout (#34185)Kerwin Bryant2025-04-131-2/+2
|
* fix webhook url (#34186)hiifong2025-04-132-7/+7
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize overflow-menu (#34183)Kerwin Bryant2025-04-133-15/+40
| | | | | | | | | | Optimized the overflow-menu: 1. Close the tippy when a menu item inside the tippy is clicked. 2. When a menu item inside the tippy is selected, move the active state of the menu to the tippy's button. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Move and rename UpdateRepository (#34136)Lunny Xiao2025-04-127-156/+145
|
* Update milestones.tmpl (#34184)Kerwin Bryant2025-04-121-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-123-1/+34
|
* Refactor Git Attribute & performance optimization (#34154)Lunny Xiao2025-04-1128-579/+867
| | | | | | | | | | | | | | | | This PR moved git attributes related code to `modules/git/attribute` sub package and moved language stats related code to `modules/git/languagestats` sub package to make it easier to maintain. And it also introduced a performance improvement which use the `git check-attr --source` which can be run in a bare git repository so that we don't need to create a git index file. The new parameter need a git version >= 2.40 . If git version less than 2.40, it will fall back to previous implementation. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: yp05327 <576951401@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-111-12/+70
|
* fix(#33711): cross-publish docker images to ghcr.io (#34148)Allen Conlon2025-04-103-6/+66
| | | | | | This PR will cross-publish the release, rc, and nightly images from `docker.io` to `ghcr.io` as docker hub has imposed rate-limiting Signed-off-by: Allen Conlon <software@conlon.dev>
* refactor organization menu (#33928)Exploding Dragon2025-04-1021-302/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing items in organization menu. **Menu** <details> <summary>Show</summary> Before: ![](https://github.com/user-attachments/assets/bcbce97e-84de-44ea-9889-a664979433cd) After: ![](https://github.com/user-attachments/assets/a169e00f-5212-4733-af9e-e8676ad74376) </details> **Packages** <details> keep it consistent with the other pages. <summary>Show</summary> Before: ![](https://github.com/user-attachments/assets/170d7b3d-ecac-49b9-8296-44d0b0f2b191) After: ![](https://github.com/user-attachments/assets/9c3c6915-870c-48cc-8a35-3d615a27d36d) </details> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* feat: Add sorting by exclusive labels (issue priority) (#33206)Thomas E Lackey2025-04-1028-105/+236
| | | | | | | | | | | | | Fix #2616 This PR adds a new sort option for exclusive labels. For exclusive labels, a new property is exposed called "order", while in the UI options are populated automatically in the `Sort` column (see screenshot below) for each exclusive label scope. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix vertical centering of file tree icons and use entryIcon for ↵Kerwin Bryant2025-04-0910-34/+36
| | | | | | | | | | | | | | | | | | | | | | submodules/symlinks (#34137) In the file tree, the icons are not vertically centered, which affects the overall visual consistency. Currently, the icons of submodules and symlinks do not adopt the value of entryIcon, resulting in inconsistent icon display. before: ![3000-gogitea-gitea-y4ulxr46c4k ws-us118 gitpod io_test_test gitea_src_branch_main_README md (3)](https://github.com/user-attachments/assets/d521b89f-909a-43f9-8f39-787b0243b159) after: ![3000-gogitea-gitea-y4ulxr46c4k ws-us118 gitpod io_test_test gitea_src_branch_main_README md (2)](https://github.com/user-attachments/assets/4866807f-c890-4709-b595-7086011e5231) --------- Co-authored-by: silverwind <me@silverwind.io>
* bugfix check for alternate ssh host certificate location (#34146)ManInDark2025-04-091-6/+9
| | | | | | | | | | fixes #34145 Edited all locations to actually be correct. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Cache GPG keys, emails and users when list commits (#34086)Lunny Xiao2025-04-0910-48/+65
| | | | | | | | | | When list commits, some of the commits authors are the same at many situations. But current logic will always fetch the same GPG keys from database. This PR will cache the GPG keys, emails and users for the context so that reducing the database queries. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Set MERMAID_MAX_SOURCE_CHARACTERS to 50000 (#34152)wxiaoguang2025-04-092-2/+2
| | | Fix #32015