aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix ACME path when renew (#33668)wxiaoguang2025-02-232-15/+26
| | | Try to fix #32191
* [skip ci] Updated translations via CrowdinGiteaBot2025-02-231-0/+20
|
* Improve Open-with URL encoding (#33666)wxiaoguang2025-02-212-1/+16
| | | Fix #33665
* Fix for Maven Package Naming Convention Handling (#33678)Diana2025-02-223-15/+25
| | | | | | | | Make legacy package names could be listed and add tests --------- Co-authored-by: diana.strebkova@t-systems.com <diana.strebkova@t-systems.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve swagger generation (#33664)wxiaoguang2025-02-216-12/+17
| | | | | | | Remove most "sed" tricks --------- Co-authored-by: silverwind <me@silverwind.io>
* Deleting repository should unlink all related packages (#33653)Lunny Xiao2025-02-212-6/+7
| | | | | | | | Fix #33634 --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix omitempty bug (#33663)Lunny Xiao2025-02-201-1/+1
| | | Fix #33660
* Upgrade golangci-lint to v1.64.5 (#33654)wxiaoguang2025-02-216-20/+17
| | | | | Use `usetesting` instead of deprecated `tenv`. 1. Follow up #33648 2. Make lint pass and add some comments
* Fix mCaptcha bug (#33659)wxiaoguang2025-02-202-5/+10
| | | Fix #33658
* Update Go dependencies (skip blevesearch, meilisearch) (#33655)wxiaoguang2025-02-204-275/+286
|
* Use test context in tests and new loop system in benchmarks (#33648)TheFox0x72025-02-20108-794/+712
| | | | | | | | Replace all contexts in tests with go1.24 t.Context() --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add missed changelogs (#33649)Lunny Xiao2025-02-201-0/+511
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-02-201-0/+2
|
* git graph: don't show detached commits (#33645)ericLemanissier2025-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current git graph is not usable for mirrors of repos having a lot of PRs, as can be seen at https://demo.gitea.com/ericLemanissier/conan-center-index/graph ![image](https://github.com/user-attachments/assets/ace40dd2-3eea-4d69-8e19-10fb7224e326) Manually running `git log --graph --date-order --all` on such a repo indeed shows: ``` * commit c4a34bd39d7977c8630177c5f88507000ea3e943 |\ Merge: a4bbd3ad6b 35a102c77c | | Author: toge <toge.mail@gmail.com> | | Date: Wed Feb 19 08:36:41 2025 +0000 | | | | Merge 35a102c77cbc38d84baca0ca63466fb410336ea8 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 | | | * commit 35a102c77cbc38d84baca0ca63466fb410336ea8 | | Author: toge <toge.mail@gmail.com> | | Date: Wed Feb 19 17:36:35 2025 +0900 | | | | update 4.4.2 | | | | * commit 5d610f4fd3c0428731e402a2f618fad9ce055875 | |/| Merge: a4bbd3ad6b fe916fb70a |/| | Author: Antony Peacock <ant.peacock@gmail.com> | | | Date: Wed Feb 19 08:31:30 2025 +0000 | | | | | | Merge fe916fb70a8bf49503cce70a5c7124bcc4314ddc into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 | | | | | * commit fe916fb70a8bf49503cce70a5c7124bcc4314ddc | | | Author: Antony Peacock <ant.peacock@gmail.com> | | | Date: Wed Feb 19 08:31:18 2025 +0000 | | | | | | Remove parquet cmakelist patch | | | | | | * commit 9f6d2759d650ec3c86d01bb940e829e7e14220c2 | |_|/| Merge: a4bbd3ad6b f0963429b0 |/| | | Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com> | | | | Date: Wed Feb 19 08:03:08 2025 +0100 | | | | | | | | Merge f0963429b0952499da0da7e559f8d53387097307 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 | | | | | | | * commit f0963429b0952499da0da7e559f8d53387097307 | |_|/ Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com> |/| | Date: Wed Feb 19 08:01:43 2025 +0100 | | | | | | added cwt-cucumber 2.5 | | | ``` On the other hand, running `git log --graph --date-order --branches --tags` returns the expected: ``` * commit a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 (HEAD -> master) | Author: Dan <mstr.danila@gmail.com> | Date: Fri Feb 14 18:46:11 2025 +0200 | | grpc: add version 1.69.0 (#26446) | | * grpc: add version 1.69.0 | | * add cmake tool requires | | --------- | | Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com> | * commit a7868807cb2e21206ebf95278cb588f29a3e2205 | Author: Guillaume Egles <gegles@users.noreply.github.com> | Date: Thu Feb 13 05:44:35 2025 -0800 | | openssl: add versions `3.0.16`, `3.1.8`, `3.2.4`, `3.3.3`, `3.4.1`, stop publishing revisions for version `3.0.15` (#26578) | * commit 86057d3e63ac71e2fe48c07bb301f2d54187044d | Author: Luis Caro Campos <3535649+jcar87@users.noreply.github.com> | Date: Thu Feb 13 13:34:41 2025 +0000 | | android-ndk: dont set LD and AS variables (#26581) | | * android-ndk: dont set LD and AS variables | | * android-ndk: refactor test package | * commit 123e382fafd2f5e811e10faac02efc275c45ec2a | Author: Nikita <root.kidik@gmail.com> | Date: Thu Feb 13 12:29:39 2025 +0300 | | libffi: fix conditionals when building on Windows (#26500) | | * fix: add missing or `clang` | | * fix: libffi - always require as tool `automake` ```
* Fix PR web route permission check (#33636)wxiaoguang2025-02-194-16/+47
| | | | | | | | | | | See the FIXME comment in code. Otherwise, if a repo's issue unit is disabled, then the PRs can't be edited anymore. By the way, make the permission log output look slightly better. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: metiftikci <metiftikci@hotmail.com>
* fix: add missing locale (#33641)metiftikci2025-02-181-0/+2
| | | this removed in #23113 but still using in `head_navbar.tmpl`
* Fix Untranslated Text on Actions Page (#33635)Kerwin Bryant2025-02-182-3/+4
| | | | | Fix the problem of untranslated text on the actions page Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve button layout on small screens (#33633)Guillaume2025-02-181-3/+3
| | | | | | | | | Fix #33160 Better "New Repository" & "New Migration" buttons on home page. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update README screenshots (#33347)yp053272025-02-182-10/+118
| | | | | | | | | | | | | | | | | | @lunny @techknowlogick Wait for the update of https://dl.gitea.com/screenshots Can you move all old screenshots into https://dl.gitea.com/screenshots/old ? Then run the action to upload new screenshots to https://dl.gitea.com/screenshots Follow #33149. As I mentioned here: https://github.com/go-gitea/gitea/pull/33149#issuecomment-2581787057, the prepare process is almost finished. The backend technical is using newly added `workflow_dispatch` feature for Gitea Action to take the screenshots automatically. Then we can easily sync the screenshots to the latest version without annoying manual work. Get more information from https://gitea.com/gitea/deployment
* Make actions URL in commit status webhooks absolute (#33620)Lunny Xiao2025-02-181-1/+7
| | | | | | | | | | Gitea Actions generated target url doesn't contain host and port. So we need to include them for external webhook visiting. Fix #33603 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor error system (#33626)wxiaoguang2025-02-1775-693/+703
|
* Move issue pin to an standalone table for querying performance (#33452)Lunny Xiao2025-02-1713-218/+396
| | | | | | | | | | | | | | | | | | | Noticed a SQL in gitea.com has a bigger load. It seems both `is_pull` and `pin_order` are not indexed columns in the database. ```SQL SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `content_version`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `pin_order`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked`, `time_estimate` FROM `issue` WHERE (repo_id =?) AND (is_pull = 0) AND (pin_order > 0) ORDER BY pin_order ``` I came across a comment https://github.com/go-gitea/gitea/pull/24406#issuecomment-1527747296 from @delvh , which presents a more reasonable approach. Based on this, this PR will migrate all issue and pull request pin data from the `issue` table to the `issue_pin` table. This change benefits larger Gitea instances by improving scalability and performance. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Run spellcheck on tools directory (#33627)silverwind2025-02-172-2/+2
| | | Add `tools` files to spellcheck and fixed one issue.
* Refactor error system (#33610)wxiaoguang2025-02-16184-2096/+2090
|
* Fix project issues list and counting (#33594)Lunny Xiao2025-02-1716-104/+458
| | | | Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add API to support link package to repository and unlink it (#33481)Lunny Xiao2025-02-166-15/+337
| | | | | | | Fix #21062 --------- Co-authored-by: Zettat123 <zettat123@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-02-171-0/+16
|
* Update JS and PY dependencies (#33587)silverwind2025-02-165-2722/+1430
| | | | | | | | - Update all dependencies excluding `tailwindcss` and `idiomorph` - Tested citation, asciinema, pdf, swagger --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [chore] add git mailmap for proper attribution of authorship (#33612)Sandro Santilli2025-02-161-0/+2
|
* Move commits signature and verify functions to service layers (#33605)Lunny Xiao2025-02-1621-511/+546
| | | | No logic change, just move functions.
* add spacing between sign in button's icon and text (#33609)Sveinn Thorarinsson2025-02-161-2/+4
| | | | | | | | | | | This pull request edits the head_navbar template and adds spacing between the icon and the text inside the sign in button of the navbar (button which displays at the top right of Gitea's pages when the user is not signed in). It bugged me that there was no spacing between the button's contents so I test ran this change quickly on my server and thought it looked a lot better, so decided to make this pull request. Up to you to decide if you agree that it looks better :)
* enable literal string for code search (#33590)Darren Hoo2025-02-168-56/+135
| | | | | | | | Close: #33588 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2025-02-161-0/+6
|
* Artifacts download api for artifact actions v4 (#33510)ChristopherHX2025-02-1614-27/+1146
| | | | | | | | | | | | | | | | | | | | | | | | | | * download endpoint has to use 302 redirect * fake blob download used if direct download not possible * downloading v3 artifacts not possible New repo apis based on GitHub Rest V3 - GET /runs/{run}/artifacts (Cannot use run index of url due to not being unique) - GET /artifacts - GET + DELETE /artifacts/{artifact_id} - GET /artifacts/{artifact_id}/zip - (GET /artifacts/{artifact_id}/zip/raw this is a workaround for a http 302 assertion in actions/toolkit) - api docs removed this is protected by a signed url like the internal artifacts api and no longer usable with any token or swagger - returns http 401 if the signature is invalid - or change the artifact id - or expired after 1 hour Closes #33353 Closes #32124 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug when get commit (#33602)Lunny Xiao2025-02-151-7/+11
| | | Fix #33595
* Fix mirror bug (#33597)ericLemanissier2025-02-152-3/+32
| | | | | | | | | follows-up be4e961240883778c44d9651eaaf9ab8723bbbb0 Fix https://github.com/go-gitea/gitea/issues/33200 --------- Co-authored-by: Giteabot <teabot@gitea.io>
* Fix typo in HTML attribute (#33599)silverwind2025-02-141-1/+1
|
* Use default Git timeout when checking repo health (#33593)Zettat1232025-02-141-1/+1
|
* Improve commits list performance to reduce unnecessary database queries (#33528)Lunny Xiao2025-02-1410-42/+207
| | | | | | When listing commits, Gitea attempts to retrieve the actual user based on the commit email. Querying users one by one from the database is inefficient. This PR optimizes the process by batch querying users by email, reducing the number of database queries.
* Performance optimization for pull request files loading comments attachments ↵Lunny Xiao2025-02-143-9/+11
| | | | (#33585)
* Fix PR's target branch dropdown (#33589)wxiaoguang2025-02-141-8/+16
| | | | | | Fix #33586 It only moves `PrepareBranchList` and `retrieveAssigneesData` to before the `CanModifyIssueOrPull` check, and adds more comments
* go1.24 (#33562)techknowlogick2025-02-137-11/+11
| | | | | | | update to use go1.24 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Only show the latest version in the Arch index (#33262)Exploding Dragon2025-02-134-41/+229
| | | | | | | | | | Only show the latest version of the package in the arch repo. closes #33534 --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-02-131-0/+6
|
* Enable eslint for commonjs (#33575)silverwind2025-02-123-8/+19
|
* Fix various problems (artifact order, api empty slice, assignee check, fuzzy ↵wxiaoguang2025-02-139-19/+45
| | | | | | | | | | prompt, mirror proxy, adopt git) (#33569) * Make artifact list output a stable order * Fix #33506 * Fix #33521 * Fix #33288 * Fix #33196 * Fix #33561
* Switch to `@vitest/eslint-plugin` (#33573)silverwind2025-02-123-234/+75
| | | | | | Package has been renamed and now also provides the globals so we can replace two dependencies with one. Ref: https://github.com/vitest-dev/eslint-plugin-vitest/issues/537
* Avoid duplicate SetContextValue call (#33564)wxiaoguang2025-02-126-7/+3
| | | And fix FIXME and TODO
* Add a transaction to `pickTask` (#33543)Zettat1232025-02-123-96/+108
| | | | | | | | | | In the old `pickTask`, when getting secrets or variables failed, the task could get stuck in the `running` status (task status is `running` but the runner did not fetch the task). To fix this issue, these steps should be in one transaction. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix context usage (#33554)wxiaoguang2025-02-1111-17/+18
| | | | | | | | | Some old code use direct type-casting to get context, it causes problems. This PR fixes all legacy problems and use correct `ctx.Value` to get low-level contexts. Fix #33518