0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-24 17:26:51 +01:00

823 Commits

Author SHA1 Message Date
Excellencedev
f7fc8792d5
Merge branch 'main' into fix-24635
Signed-off-by: Excellencedev <ademiluyisuccessandexcellence@gmail.com>
2026-01-16 14:55:05 +01:00
TheFox0x7
69c5921d71
Add ability to download subpath archive (#36371)
closes: https://github.com/go-gitea/gitea/issues/4478

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-16 09:31:12 +00:00
Zeno
3f46de8265
Add chunked transfer encoding support for LFS uploads (#36380)
Enable chunked transfer encoding for Git LFS uploads by adding
Transfer-Encoding: chunked header to upload action responses. This
prevents large file uploads (100+ MB) from being blocked by reverse
proxies like Cloudflare that buffer non-chunked requests.

Fix https://github.com/go-gitea/gitea/issues/22233

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-16 07:15:18 +08:00
Lunny Xiao
c8b5a1ddf7
Fix cancel auto merge bug (#36341) 2026-01-12 13:47:06 -08:00
Lunny Xiao
fbea2c68e8
Fix delete attachment check (#36320) 2026-01-12 08:16:59 +00:00
Excellencedev
79c38fe9a7
Merge branch 'main' into fix-24635 2026-01-11 17:49:03 +01:00
wxiaoguang
eec8ee056c
Fix some trivial problems (#36336)
1. correctly parse git protocol's "OldCommit NewCommit RefName" line, it
should be explicitly split by space
2. add missing "return" in CreatePullRequest
3. add comments for "/user.keys" and "/user.gpg" outputs
4. trim space for the "commit status context name" to follow the same
behavior of git_model.NewCommitStatus
2026-01-09 20:58:21 +02:00
Excellencedev
d26294839e
Merge branch 'main' into fix-24635 2026-01-06 15:07:03 +01:00
Daniel Mach
1d01286f4c
Add 'allow_maintainer_edit' API option for creating a pull request (#36283)
WebUI has a checkbox for enabling maintainer edits you can check right
away when creating a new pull request.
Also, it is possible to set `allow_maintainer_edit` in an existing pull
request via API.
This change enables the option while creating a new pull request via
API.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-06 01:00:26 +08:00
Excellencedev
15c19f6b67 ... 2026-01-05 05:39:14 +01:00
Excellencedev
b37a967d37 logs 2026-01-05 05:25:03 +01:00
Excellencedev
012c9e05ed ... 2026-01-05 04:56:43 +01:00
Excellencedev
f5d4ce621b compile errors 2026-01-05 04:45:57 +01:00
Excellencedev
b92e2ebe3f adding action permissions test case to tests/integration/actions_job_test.go 2026-01-05 04:28:25 +01:00
Excellencedev
13660f202d cleanup 2026-01-03 13:39:01 +01:00
Excellencedev
9faf677652
Merge branch 'main' into fix-24635 2026-01-03 10:32:01 +01:00
Excellencedev
3e95499bcf green up ci 2026-01-03 10:31:44 +01:00
wxiaoguang
b79dbfa990
Fix link/origin referrer and login redirect (#36279)
Fix #35998

1. Fix `<a rel>` :
    * "_blank" already means "noopener"
* "noreferrer" is already provided by page's `<meta name="referrer">`
2. Fix "redirect_to" mechisam
* Use "referer" header to determine the redirect link for a successful
login
3. Simplify code and merge duplicate logic
2026-01-03 11:43:04 +08:00
Excellencedev
be52d4a338 ... 2026-01-02 10:42:18 +01:00
Excellencedev
285f366f22 ... 2026-01-02 10:12:47 +01:00
Excellencedev
91f8298828 comile errors 2026-01-02 09:42:39 +01:00
Excellencedev
a944be1bf2 improve test 2026-01-02 09:28:56 +01:00
Excellencedev
3af786ccee
Merge branch 'main' into fix-24635 2026-01-01 06:39:03 +01:00
wxiaoguang
094104bc91
Make "commit statuses" API accept slashes in "ref" (#36264)
Fix #36253

Support slashes in `{ref}` (follow GitHub's behavior)
2026-01-01 09:56:07 +08:00
Excellencedev
f3b14570f2 Feedback 2025-12-31 19:14:10 +01:00
Excellencedev
2e7bd47be6 chore: fix ci 2025-12-31 06:00:05 +01:00
Excellencedev
1ff75aa822 Implement Workflow Level Permissions 2025-12-31 05:11:28 +01:00
Excellencedev
efb93b5da1 Fixes 2025-12-30 04:38:04 +01:00
Excellencedev
f9f24dd466 Make all CI green again 2025-12-26 13:15:32 +01:00
Excellencedev
ae43a09aa8 ... 2025-12-26 12:49:27 +01:00
Excellencedev
4ccb766bf2 Re-implement changes for feedback 2025-12-26 09:18:59 +01:00
Excellencedev
7df7f72a71
Merge branch 'main' into fix-24635
Signed-off-by: Excellencedev <ademiluyisuccessandexcellence@gmail.com>
2025-12-26 08:23:33 +01:00
silverwind
42d294941c
Replace CSRF cookie with CrossOriginProtection (#36183)
Removes the CSRF cookie in favor of
[`CrossOriginProtection`](https://pkg.go.dev/net/http#CrossOriginProtection)
which relies purely on HTTP headers.

Fixes: https://github.com/go-gitea/gitea/issues/11188
Fixes: https://github.com/go-gitea/gitea/issues/30333
Helps: https://github.com/go-gitea/gitea/issues/35107

TODOs:

- [x] Fix tests
- [ ] Ideally add tests to validates the protection

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-25 12:33:34 +02:00
Excellencedev
973de056e8 review comment 2025-12-24 13:02:07 +01:00
Excellencedev
ebf7e2ea8c fix test 2025-12-24 06:26:31 +01:00
Excellencedev
43279bfb8b Use correct authentication 2025-12-24 05:57:51 +01:00
Excellencedev
9ada493d72 Add cross repo package access test 2025-12-24 05:29:27 +01:00
Excellencedev
9bd8b8109d Review comment fixes 2025-12-24 02:49:37 +01:00
Excellencedev
a72803dec1
Merge branch 'main' into fix-24635 2025-12-22 08:09:37 +01:00
Gregorius Bima Kharisma Wicaksana
b6ffe0e4e9
refactor: extract helper functions from SearchIssues (#36158)
## Summary

This PR refactors the `SearchIssues` function in
`routers/api/v1/repo/issue.go` by extracting common logic into reusable
helper functions:

- `parseIssueIsClosed()`: Parses the "state" query parameter and returns
the corresponding `isClosed` option
- `parseIssueIsPull()`: Parses the "type" query parameter and returns
the corresponding `isPull` option
- `buildSearchIssuesRepoIDs()`: Builds the list of repository IDs for
issue search based on query parameters

### Benefits:
- Improved code readability
- Smaller, more focused functions
- Easier to test individual components
- Potential for reuse in other handlers

### Changes:
- Extracted 3 helper functions from the ~292 line `SearchIssues`
function
- No functional changes - behavior remains the same
- Proper error handling preserved

## Test plan
- [ ] Verify existing API tests pass
- [ ] Manual testing of `/repos/issues/search` endpoint

Ref: #35015

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-20 17:57:41 -08:00
Excellencedev
463c670d06 issue fix 2025-12-20 08:28:58 +01:00
Excellencedev
6cc6fd7f68 lint 2025-12-20 07:50:12 +01:00
Excellencedev
38f384aca2 fmt 2025-12-20 07:38:11 +01:00
Excellencedev
5628ab713b lint 2025-12-20 07:31:41 +01:00
Excellencedev
b0c2a958b5 Format 2025-12-20 07:02:20 +01:00
Excellencedev
06b3db5507 Improve test coverage 2025-12-20 06:51:34 +01:00
Excellencedev
b2f05ff4f7 fix test 2025-12-20 06:19:38 +01:00
Excellencedev
b0811fe686 Formatting issues 2025-12-20 05:52:40 +01:00
Excellencedev
9c5b278622 Fix all bugs I found in the code 2025-12-20 05:46:33 +01:00
Excellencedev
5eb2f12b0e wip 2025-12-19 03:41:22 +01:00