aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Refactor container package (#34877)HEADmainwxiaoguang13 hours6-139/+86
| | | Use standard db.WithTx and introduce db.WithTx2
* [skip ci] Updated translations via CrowdinGiteaBot14 hours1-0/+2
|
* Fix project column edit (#34890)wxiaoguang30 hours2-3/+4
| | | Fix #34888
* Upgrade htmx to 2.0.6 (#34887)Yarden Shoham43 hours2-5/+5
| | | | | | | | | Release notes: https://github.com/bigskysoftware/htmx/releases/tag/v2.0.6 Tested Star, Watch, and the admin dashboard page. All functionality remains unchanged. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Optimize flex layout of release attachment area (#34885)Kerwin Bryant46 hours2-2/+6
| | | | | | | | | before: ![b975dce7-d5b1-43e0-b6f4-94557758e30e](https://github.com/user-attachments/assets/c33f3fd0-ce1a-457c-97fe-942b86cf09c1) after: ![682ce03c-9d2c-4b5d-9ba0-fb759fd98088](https://github.com/user-attachments/assets/55304b19-a3c3-4a91-b07a-0c9868dbe3eb)
* Improve `labels-list` rendering (#34846)silverwind47 hours19-115/+185
| | | | | | | Make labels list use consistent gap --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* enforce explanation for necessary nolints and fix bugs (#34883)TheFox0x72 days48-159/+83
| | | | | | | Follows up https://github.com/go-gitea/gitea/pull/34851 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix a regression when refactoring fork list (#34879)Lunny Xiao2 days1-1/+1
| | | Fix a regression when refactoring fork list from #34784
* enforce nolint scope (#34851)TheFox0x72 days303-314/+335
| | | | | | | | | | | | | | | enable nolintlint scope requirement add comments to new directives so it's more obvious why they are in place --- I can also toggle the mandatory comments on if that's something of interest. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot3 days2-1/+7
|
* Use standalone function to update repository cols (#34811)Lunny Xiao3 days4-49/+31
| | | | | | | | Extract `UpdateRepository` Follow up #34762 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot4 days22-43/+25
|
* Add issue delete notifier (#34592)badhezi4 days5-2/+120
| | | | | | Fixes https://github.com/go-gitea/gitea/issues/34591 A reference regarding the deletion of issue webhooks on GitHub: https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=deleted#issues
* Refactor "change file" API (#34855)wxiaoguang4 days10-357/+199
| | | | | | | | | Follow up the "editor" refactor, use the same approach to simplify code, and fix some docs & comments --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
* Fix some log and UI problems (#34863)wxiaoguang4 days4-10/+15
| | | | | Remove the misleading error log, fix #34738 Make the "search" input auto-focused, fix #34807
* Update go tool dependencies (#34845)silverwind4 days1-7/+7
| | | | | | Tested a few things, everything seems to work. `editorconfig-checker` is now pinned at v3 to avoid having to maintain its minor releases.
* Fix archive API (#34853)wxiaoguang4 days3-6/+18
| | | Fix #34852
* Update `uint8-to-base64`, remove type stub (#34844)silverwind4 days3-10/+5
| | | | | The module now ships type definitions so remove our type stub. Ref: https://github.com/WebReflection/uint8-to-base64/pull/4
* Refactor repo contents API and add "contents-ext" API (#34822)wxiaoguang4 days18-256/+475
| | | See the updated swagger document for details.
* [skip ci] Updated translations via CrowdinGiteaBot5 days5-4/+66
|
* fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818)Junsik Kong5 days13-203/+161
| | | | | | | | | | | | | | | | This PR fixes a state de-synchronization bug with the issue stopwatch, it resolves the issue by replacing the ambiguous `/toggle` endpoint with two explicit endpoints: `/start` and `/stop`. - The "Start timer" button now exclusively calls the `/start` endpoint. - The "Stop timer" button now exclusively calls the `/stop` endpoint. This ensures the user's intent is clearly communicated to the server, eliminating the state inconsistency and fixing the bug. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Remove unused variable HUGO_VERSION (#34840)silverwind5 days1-1/+0
| | | | | This variable is unused, occurs nowhere in the codebase. I can't pinpoint the exact commit when it was last used, but I think it's unused since the docs were moved out.
* Fix SSH LFS timeout (#34838)wxiaoguang5 days2-6/+4
| | | Fix #34834
* Ignore force pushes for changed files in a PR review (#34837)delvh5 days1-1/+2
| | | | | | | Fixes #34832 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix log fmt (#34810)Lunny Xiao5 days1-1/+1
|
* Fix team permissions (#34827)wxiaoguang5 days15-52/+163
| | | | * Fix #34793 * Fix #33456
* Fix job status aggregation logic (#34823)JIUN-TAI NIEN5 days2-5/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot6 days7-9/+39
|
* correct migration tab name (#34826)TheFox0x76 days2-2/+2
| | | | Previous version reads like we're migrating some kind of status instead of what it is - status of the migration.
* Refactor template helper (#34819)wxiaoguang6 days15-39/+20
| | | | | | | | FIx abuses and remove unused code --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* [skip ci] Updated translations via CrowdinGiteaBot7 days28-0/+148
|
* Fix required contexts and commit status matching bug (#34815)Zettat1237 days2-2/+14
| | | | | | | | | | | | Fix #34504 Since one required context can match more than one commit statuses, we should not directly compare the lengths of `requiredCommitStatuses` and `requiredContexts` --------- Signed-off-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add "Cancel workflow run" button to Actions list page (#34817)NorthRealm7 days4-3/+9
|
* Use `shallowRef` instead of `ref` in `.vue` files where possible (#34813)Kilisei7 days9-51/+51
| | | | | | | | | | | This PR improves some `.vue` components by using `shallowRef instead of ref`, which `should improve performance`. It's probably not significant, but it's an improvement because Vue no longer deep watches the ref (shallowRef). Also i used `useTemplateRef` instead of `ref`. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Edit file workflow for creating a fork and proposing changes (#34240)Brecht Van Lommel7 days26-419/+740
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When viewing a file that the user can't edit because they can't write to the branch, the new, upload, patch, edit and delete functionality is no longer disabled. If no user fork of the repository exists, there is now a page to create one. It will automatically create a fork with a single branch matching the one being viewed, and a unique repository name will be automatically picked. When a fork exists, but it's archived, a mirror or the user can't write code to it, there will instead be a message explaining the situation. If the usable fork exists, a message will appear at the top of the edit page explaining that the changes will be applied to a branch in the fork. The base repository branch will be pushed to a new branch to the fork, and then the edits will be applied on top. The suggestion to fork happens when accessing /_edit/, so that for example online documentation can have an "edit this page" link to the base repository that does the right thing. Also includes changes to properly report errors when trying to commit to a new branch that is protected, and when trying to commit to an existing branch when choosing the new branch option. Resolves #9017, #20882 --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor packages (#34777)wxiaoguang7 days8-247/+149
|
* Refactor wiki (#34805)wxiaoguang7 days12-173/+71
| | | Remove unclear code
* [skip ci] Updated translations via CrowdinGiteaBot8 days28-164/+62
|
* Upgrade htmx to 2.0.5 (#34809)Yarden Shoham8 days2-5/+5
| | | | | | | | | Release notes: https://github.com/bigskysoftware/htmx/releases/tag/v2.0.5 Tested Star, Watch, and the admin dashboard page. All functionality remains unchanged. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Forks repository list page follow other repositories page (#34784)Lunny Xiao8 days12-27/+26
| | | | | | | | | | | | Replace #24130 Before: ![image](https://github.com/user-attachments/assets/98c39bce-bdbf-4fc1-b476-527c5139e01f) After: ![image](https://github.com/user-attachments/assets/65fef5b8-63b9-4283-b8ea-2ac2f27cb001)
* Add post-installation redirect based on admin account status (#34493)Kerwin Bryant8 days7-4/+32
| | | | | | | | | | | | | | | | This PR adds a feature to direct users to appropriate pages after system installation: - If no admin credentials were provided during installation, redirect to the registration page with a prominent notice about creating the first administrative account - If admin credentials were already set, redirect directly to the login page ![4d396ad132d9b57fc4f45a62117177f1](https://github.com/user-attachments/assets/3a5d8700-9194-4d3b-a862-e64c8c347932) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Rework delete org and rename org UI (#34762)Lunny Xiao8 days17-207/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # What's the problem of the original implementation Renaming organization will mix with organization's information change make the operation difficult to keep consistent. This PR created a danger zone like what's repository setting. It also moved organization's `rename` and `delete` operations to this zone. The original updating repository will not change the name any more. This is also a step to extract the `updaterepository` function completely. Before: ![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575) ![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2) After: ![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3) ![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412) ![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2) ![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor editor (#34780)wxiaoguang8 days41-1634/+973
| | | A complete rewrite
* Improve img lazy loading (#34804)wxiaoguang8 days11-17/+30
| | | Related #32051 and #13526
* [skip ci] Updated translations via CrowdinGiteaBot9 days2-2/+3
|
* Fix Feishu webhook signature verification (#34788)Snowball_2339 days3-6/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Fix Feishu Webhook Signature Verification This PR implements proper signature verification for Feishu (Lark) webhooks according to the [official documentation](https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot). ## Changes - Implemented the `GenSign` function based on Feishu's official Go sample code - Modified the webhook request creation to include timestamp and signature in the payload when a secret is configured - Fixed the signature generation algorithm to properly use HMAC-SHA256 with the correct string format ## Implementation Details The signature verification works as follows: 1. When a webhook secret is provided, a timestamp is generated 2. The signature string is created using `timestamp + "\n" + secret` 3. The HMAC-SHA256 algorithm is applied to an empty string using the signature string as the key 4. The result is Base64 encoded to produce the final signature 5. Both timestamp and signature are added to the payload According to Feishu's documentation, the timestamp must be within 1 hour (3600 seconds) of the current time to be considered valid. ## Security Note Feishu emphasizes the importance of keeping webhook URLs secure. Do not disclose them on GitHub, blogs, or any public sites to prevent unauthorized use. ## References - [Feishu Custom Bot Documentation](https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot) --------- Co-authored-by: hiifong <i@hiif.ong> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Upgrade chi to v5.2.2 (#34798)Lunny Xiao9 days2-3/+3
|
* Fix the issue of abnormal interface when there is no issue-item on the ↵Kerwin Bryant9 days1-0/+1
| | | | project page (#34791)
* Fix container range bug (#34795)wxiaoguang9 days2-3/+17
| | | Fix #34792 and add new tests
* Fix OCI manifest parser (#34797)wxiaoguang9 days4-28/+34
| | | Do not parse the media type we don't know.