aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix ACME directory problem (#33072)wxiaoguang2025-01-021-1/+1
|
* Refactor env var related code (#33075)wxiaoguang2025-01-025-52/+32
| | | And add more comments
* [skip ci] Updated translations via CrowdinGiteaBot2025-01-021-0/+5
|
* unset XDG_HOME_CONFIG as gitea manages configuration locations (#33067)JonRB2025-01-023-0/+7
| | | | | | | | unset XDG_CONFIG_HOME early to enable gitea to manage git configuration. simple error checking to satisfy the linting. Closes #33039 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor repo-new.ts (#33070)wxiaoguang2025-01-016-57/+69
| | | | | 1. merge `repo-template.ts` into `repo-new.ts` (they are all for "/repo/create") 2. remove jquery 3. fix an anonying fomantic dropdown bug, see the comment of `onResponseKeepSelectedItem`
* Refactor pull-request compare&create page (#33071)wxiaoguang2025-01-025-253/+195
| | | The old code is unnecessarily complex.
* feat: link to nuget dependencies (#26554)lonix12025-01-012-2/+4
| | | | | | Add links to dependencies and their versions, as done in nuget site. Makes it easier to use. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Remove some unnecessary template helpers (#33069)wxiaoguang2025-01-0110-187/+184
| | | | DisableGitHooks and DisableImportLocal are only used when editing a user, so only set them in `editUserCommon`
* Inherit submodules from template repository content (#16237)Steffen Schröter2025-01-0117-136/+290
| | | | | | | | Fix #10316 --------- Signed-off-by: Steffen Schröter <steffen@vexar.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-01-0128-26/+28
|
* feat(action): issue change title notifications (#33050)Bo-Yi Wu2024-12-311-0/+8
| | | | | | | | | | | | | | | | | | | | | - Add `IssueChangeTitle` method to handle issue title changes - Add `notifyIssueChangeWithTitleOrContent` method to generalize notification handling for issue title or content changes action file as below: ```yaml name: Semantic Pull Request on: pull_request_target: types: [edited] ``` --------- Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use project's redirect url instead of composing url (#33058)Lunny Xiao2024-12-314-11/+26
| | | | | | | Fix #32992 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix unittest and repo create bug (#33061)wxiaoguang2024-12-319-82/+80
| | | | | | | 1. `StatDir` was not right, fix the FIXME 2. Clarify the test cases for `IsUsableRepoName` 3. Fix regression bug in `repo-new.ts` Fix #33060
* Fix locale type (#33059)wxiaoguang2024-12-311-3/+3
| | | Follow #32872
* Refactor maven package registry (#33049)wxiaoguang2024-12-315-60/+143
| | | Close #33036
* Optimize the installation page (#32994)Kerwin Bryant2024-12-312-19/+7
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [Feature] Private README.md for organization (#32872)Chai-Shi2024-12-3127-149/+484
| | | | | | | | Implemented #29503 --------- Co-authored-by: Ben Chang <ben_chang@htc.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make issue suggestion work for new PR page (#33035)wxiaoguang2024-12-312-2/+4
| | | Fix #33026
* Add IntelliJ Gateway's .uuid to gitignore (#33052)hiifong2024-12-301-0/+4
|
* Fix issue comment number (#30556)Lunny Xiao2024-12-305-19/+89
|
* Fix duplicate co-author in squashed merge commit messages (#33020)hiifong2024-12-301-1/+5
| | | | | | | Fix: #31980 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Merge updatecommentattachment functions (#33044)Lunny Xiao2024-12-304-50/+42
| | | Extract from #32178
* Move SetMerged to service layer (#33045)Lunny Xiao2024-12-305-65/+65
| | | | No code change. Extract from #32178
* Remove aws go sdk package dependency (#33029)Lunny Xiao2024-12-304-20/+5
| | | | | This PR removed the dependency of `github.com/aws/aws-sdk-go/aws` Patially fix for #33023
* Fix settings not being loaded at CLI (#26402)cassio zareck2024-12-307-13/+16
| | | | | | | | | | Closes #25898 The problem was that the default settings weren't being loaded --------- Signed-off-by: cassiozareck <cassiomilczareck@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor fixture loading for testing (#33024)wxiaoguang2024-12-3011-246/+375
| | | To help binary size and testing performance
* Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from ↵Lunny Xiao2024-12-304-21/+35
| | | | | | | | | | | | latest commit cache (#32987) The latest commit cache is currently used only for listing tree files. However, a cold start may take longer than directly invoking the Git command. This PR addresses the issue of slow response times when accessing raw files, improving performance in such scenarios. ```log gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload) ```
* Fix bug automerge cannot be chosed when there is only 1 merge style (#33040)Lunny Xiao2024-12-301-1/+1
| | | | | | | This is a quick bug fix. Even if there is only 1 merge style, the dropdown menu will still be displayed to allow users to choose auto-merge. Fix #32448
* use `-s -w` ldflags for release artifacts (#33041)techknowlogick2024-12-301-5/+5
| | | fix #33030
* Refactor pagination (#33037)wxiaoguang2024-12-3025-151/+33
| | | | | I am sure the simple approach should work, let's try it in 1.24 Follow #29834 and #29841
* Test webhook email (#33033)wxiaoguang2024-12-301-0/+12
| | | Close #27918
* Fix review code comment avatar alignment (#33031)Henry Goodman2024-12-291-2/+3
| | | | | | | | | | Fixes #33017 Avatar should only have offset if the `Comment` has `Content` or `Attachment` to align with the speech bubble. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix templating in pull request comparison (#33025)TheFox0x72024-12-292-3/+75
| | | | | Adds test for expected behavior Closes: https://github.com/go-gitea/gitea/issues/33013
* Refactor tests (#33021)wxiaoguang2024-12-2914-68/+83
| | | | | | | | | | | | | | | | 1. fix incorrect tests, for example: BeanExists doesn't do assert and shouldn't be used 2. remove unnecessary test functions 3. introduce DumpQueryResult to help to see the database rows during test (at least I need it) ``` ====== DumpQueryResult: SELECT * FROM action_runner_token ====== - # row[0] id: 1 token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX owner_id: 0 ... ```
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-291-2/+222
|
* always show assignees on right (#33006)metiftikci2024-12-291-24/+24
| | | | | | | | | ### Before ![old_issue_list](https://github.com/user-attachments/assets/c7a6631d-9330-4e29-9e01-c1bcb2a0387f) ### After ![new_issue_list](https://github.com/user-attachments/assets/5a13c413-b58e-40bb-888b-9edfe3c94e0c)
* fix toggle commit body button ui when latest commit message is long (#32997)metiftikci2024-12-293-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | #### Before ![before](https://github.com/user-attachments/assets/fe36bdb3-10e8-4fe7-9106-0897f49bedb3) #### After ![after](https://github.com/user-attachments/assets/745bd164-5f25-41ca-b340-36cb695551db) ## Edit: I found an issue on mobile view and changed the code as using flex gap ![small](https://github.com/user-attachments/assets/dd7c2093-6860-4800-a2bc-676a03e764c8) ![large](https://github.com/user-attachments/assets/5c933779-8281-4d48-9fd0-4d7b245bf4ac) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix and/or comment some legacy CSS problems (#33015)wxiaoguang2024-12-286-27/+13
|
* Refactor comment history and fix content edit (#33018)wxiaoguang2024-12-284-35/+43
| | | | | And fix a regression bug for comment content editing. Now 11 "import jquery" files left
* Fix bug on activities (#33008)Lunny Xiao2024-12-281-2/+5
| | | | | | A repository with no issue will display a random number on activities page. This is caused by wrong usage of `And` and `Or`. ![9cdbbf81d50aa5d9bd16604e0dab5eb0](https://github.com/user-attachments/assets/828cebdc-bd35-4716-a58c-c1b43ddf8bf0)
* Refactor arch route handlers (#32993)wxiaoguang2024-12-285-190/+260
|
* fix scoped label ui when contains emoji (#33007)metiftikci2024-12-281-1/+1
| | | | | | | | | ### Before ![old_label](https://github.com/user-attachments/assets/2211f711-613a-4ed4-90fd-8ff6ab0700f5) ### After ![new_label](https://github.com/user-attachments/assets/ecbc89da-7f77-44d0-8ce9-ba51b67421e5)
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-281-2/+4
|
* De-emphasize signed commits (#31160)Blender Defender2024-12-2817-550/+299
| | | | | | | | | | The new code structure is easier to make more improvements or refactor, for example: change the colors to de-emphasize more, or design some new layouts. --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix eslint (#33002)wxiaoguang2024-12-273-164/+10
| | | | | | | Fix #32982 Related #32869 * eslint-plugin-github 5.1.x doesn't work well with eslint8 * no-undef is still needed
* Fix Agit pull request permission check (#32999)a10121127962024-12-272-1/+21
| | | | | | | | | | | user with read permission should also can create agit flow pull request. looks this logic was broken in https://github.com/go-gitea/gitea/pull/31033 this pull request try fix it and add test code. --------- Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Support for email addresses containing uppercase characters when activating ↵Zettat1232024-12-277-35/+61
| | | | | | | | | user account (#32998) Fix #32807 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-2719-0/+24
|
* Improve Actions test (#32883)Zettat1232024-12-263-0/+726
| | | This PR adds a mock runner to test more actions features.
* Support org labels when adding labels by label names (#32988)Zettat1232024-12-264-10/+50
| | | Fix #32891