Commit Graph

19771 Commits

Author SHA1 Message Date
28a7cc4621 Nix flake build static with sqlite support (#35149)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
with `nix develop -c $SHELL` you can enter the dev environment.
now with `make clean-all generate build -j1` you will get a static
linked binary that has sqlite support
2025-08-07 04:22:08 +08:00
de4ab41728 Vertically center "Show Resolved" (#35211)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
2025-08-06 07:31:38 +00:00
93cf656974 [skip ci] Updated translations via Crowdin 2025-08-06 00:40:29 +00:00
becd15f743 Fix Actions API (#35204)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Fixed a nil pointer error.

Related #34337
2025-08-04 23:41:30 -04:00
920d62c0a7 Add webhook test for push event (#34442)
Confirm #9243 has been fixed.
2025-08-05 02:05:13 +00:00
de570b7dde Remove unneeded if statements for update repo API (#35140)
just try to make the update func more redable and be more KISS

---
_Sponsored by Kithara Software GmbH_
2025-08-05 01:38:35 +00:00
1692652d65 [skip ci] Updated translations via Crowdin 2025-08-05 00:41:30 +00:00
25ed31e220 Step down as maintainer (justusbunsi) (#35212)
Since I barely contributed to the Gitea code base, this is just a PR for
completing https://gitea.com/gitea/helm-gitea/pulls/917 (details there).
2025-08-04 16:55:36 -07:00
c760e3b2b5 Display pull request in merged commit view (#35202)
Fixes #34634

---

I am not a Web dev so I'm open to any change on the design. The
important thing for me is to have the feature implemented.

Here are screenshots on a test instance:

<img width="2758" height="420" alt="Capture d'écran 2025-08-02 161710"
src="https://github.com/user-attachments/assets/30abbeb5-6139-4a91-9348-36e78f1646e6"
/>

<img width="2769" height="520" alt="Capture d'écran 2025-08-02 161725"
src="https://github.com/user-attachments/assets/29871f05-f0b5-4a31-9ada-812780269c7d"
/>
2025-08-04 23:30:12 +00:00
67d623580b Step down as maintainer (pat-s) (#35213)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Follow up to https://gitea.com/gitea/helm-gitea/pulls/918, even though I
didn't contrib a lot to the core repo anyhow.

Signed-off-by: Patrick Schratz <patrick.schratz@gmail.com>
2025-08-04 16:03:52 -07:00
8125633aa3 [skip ci] Updated translations via Crowdin 2025-08-04 00:44:07 +00:00
be2a6b4414 Fix bug when review pull request commits (#35192)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.

The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.

Fix #35157 
Replace #35184 
Partially extract from #35077
2025-08-03 10:23:10 -07:00
1f676b36b1 [skip ci] Updated translations via Crowdin 2025-08-03 00:44:31 +00:00
5050976de7 [skip ci] Updated translations via Crowdin 2025-08-02 00:38:38 +00:00
5b1ab35ced Fixed typo in oauth2_full_name_claim_name string (#35199)
Fixes: #35197

- Replaced ';' with '-' in oauth2_full_name_claim_name string to fix
parsing issue.

Signed-off-by: satnam72 <125819218+satnam72@users.noreply.github.com>
2025-08-01 16:26:43 -07:00
5d94c9dd21 Fixed typo in locale_en-US.ini (#35196)
Fixes: #35195 

- Removed word "the" from the string 'reinstall_confirm_check_1' in
locale_en-US.ini

Signed-off-by: satnam72 <125819218+satnam72@users.noreply.github.com>
2025-08-01 17:41:31 -04:00
e7d6f74450 Update JS and PY deps (#35191)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
- Updated all dependencies
- Fixed new CSS lint errors, specifically tested the
RepoActivityTopAuthors.vue change
- Regenerated SVGs
2025-08-01 07:24:26 +00:00
e01c921ee4 [skip ci] Updated translations via Crowdin 2025-08-01 00:45:25 +00:00
f4d7701189 Change function description comments to tsdoc style (#35185)
1. change function comments to the minimal [tsdoc](https://tsdoc.org/)
style. This has the benefit of making editors show the doc string in
tooltips when the function is hovered:

<img width="521" height="110" alt="image"
src="https://github.com/user-attachments/assets/b966f4f1-8239-433a-a456-5bd5c05d69ef"
/>

2. disable eslint `multiline-comment-style` as it conflicts with tsdoc.

---------

Signed-off-by: silverwind <me@silverwind.io>
2025-07-31 15:59:34 -07:00
84d31bc842 A small refactor to use context in the service layer (#35179)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
2025-07-31 03:43:54 +00:00
c3f5ea3b1f Fix repo file list partial reloading for submodules (#35183)
Fix the TODO and add more tests
2025-07-31 09:34:51 +08:00
2e8a4a09d5 Update gopls to 0.20.0 (#35180)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Ran `make lint-go-gopls fix` and it did not find any new issues or
introduce any changes.

Release notes: https://go.dev/gopls/release/v0.20.0
2025-07-30 18:31:33 +02:00
85b5877bb0 Fix various bugs (#35177)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
* Fix #35144
* Fix #35117
* Fix https://github.com/go-gitea/gitea/issues/35054#issuecomment-3131793977
* Fix #35136
2025-07-30 07:08:59 +00:00
b7d8fade72 [skip ci] Updated translations via Crowdin 2025-07-30 00:39:54 +00:00
3778538a1c [skip ci] Updated translations via Crowdin 2025-07-29 00:43:36 +00:00
1b4d0800b4 [skip ci] Updated translations via Crowdin 2025-07-28 00:42:51 +00:00
5fd7fd3edb Fix migrate input box bug (#35166)
Some checks failed
release-nightly / nightly-docker-rootless (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Fix #35162
2025-07-27 11:16:52 +03:00
2a8ecfb002 [skip ci] Updated translations via Crowdin 2025-07-27 00:44:03 +00:00
82c9589faa Only hide dropzone when no files have been uploaded (#35156)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-docker-rootless (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
Instead of always hiding the dropzone when it's not active:
- hide it when when there are no uploaded files and it becomes inactive 
- don't hide it when there are uploaded files

Fixes #35125

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-26 11:06:21 -07:00
54fe47fbca Change some columns from text to longtext and fix column wrong type caused by xorm (#35141)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
This PR upgrade xorm to v1.3.10 which fixed a bug when both `longtext
json` tags in the struct field. The `longtext` will be ignored and
`json` will be considered as `text`.

A migration has been introduced to modify the column directly to
longtext. And another two columns should also be migrated from text to
longtext.

All these changes only affect mysql database because for other databases
Gitea supported, text is the same as longtext.

Fix #27244 
Fix #34764 
Fix #35042
2025-07-23 22:24:44 -07:00
c72174a43d [skip ci] Updated translations via Crowdin 2025-07-24 00:40:59 +00:00
c10c4203ee Add owner and parent fields clarification to docs (#35023)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Issue: https://github.com/go-gitea/gitea/issues/9637

Changes introduced: I have clarified the problematic terms (owner and
parent) in all affected endpoints.

The changes were made to relevant:

- HTTP endpoint parameters' descriptions
- response/request models' fields

This MR is big, but most changes are the same. If you'd like me to break
this MR into several smaller ones, let me know :)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-23 06:44:34 +00:00
43831ff0ca Improve language in en-US locale strings (#35124)
#35015

For easier review, the changes are split into separate commits by broad
category. The extended commit messages include brief summaries. I am
happy to make a separate pull request for each category if preferred.

While many of the changes are corrections, some are influenced by style.
In those cases I have aimed mainly for consistency throughout the file,
picking a style variant that I think is widely accepted and aids
clarity.

There are additional things that could be improved that I have not
touched. For example, contractions (phrasing variants such as "doesn't"
vs. "does not") could be made more consistent. Not sure how colloquial
or formal the maintainers would like the UI to be.

---------

Signed-off-by: Dominik Rubo <dr-1@posteo.net>
Co-authored-by: Dominik Rubo <dominik.rubo@posteo.net>
Co-authored-by: delvh <dev.lh@web.de>
2025-07-22 23:17:06 -07:00
245add3085 Remove unused poetry.toml file (#35143)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Forgot to remove this in https://github.com/go-gitea/gitea/pull/35084.
2025-07-23 01:22:20 +00:00
65cd3f5309 Use db.WithTx/WithTx2 instead of TxContext when possible (#35130)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
2025-07-22 10:02:01 -07:00
f201dde945 [skip ci] Updated translations via Crowdin 2025-07-22 00:39:36 +00:00
86aafea3fb Fix session gob (#35128)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Fix #35126
2025-07-20 01:49:36 +00:00
3531e9dbfd Replace setup-python with setup-uv (#35116)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
2025-07-18 14:02:57 +00:00
c4f5b2b531 Don't use full-file highlight when there is a git diff textconv (#35114)
Fix #35106
2025-07-18 19:16:27 +08:00
8f91bfe9d8 Fix submodule parsing when the gitmodules is missing (#35109)
Follow up #35096, fix #35095, fix #35115 and add more tests

The old code used some fragile behaviors which depend on the "nil"
receiver. This PR should be a complete fix for more edge cases.
2025-07-18 09:42:44 +00:00
13b9659952 Align issue-title-buttons with list-header (#35018)
This change concerns the "Edit" and "New Issue" button on top right.
With this change, switching from the issue list into an issue, the "New
Issue" button will no longer "shift" from the postion on the previous
page.

<img width="1299" alt="Screenshot 2025-07-09 at 17 37 31"
src="https://github.com/user-attachments/assets/1ea55d8a-2abd-49b0-951a-ccc6466a74ee"
/>

<img width="1300" alt="Screenshot 2025-07-09 at 17 37 19"
src="https://github.com/user-attachments/assets/05997d9d-25eb-4786-803d-00c575f78bef"
/>

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-18 09:13:32 +00:00
3e8aa52446 [skip ci] Updated translations via Crowdin 2025-07-18 00:38:45 +00:00
2f138f7a03 Increase gap on latest commit (#35104)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
2025-07-17 20:53:03 +00:00
39f145ae72 Fix job status aggregation logic (#35000)
For a run (assume 2 jobs) that has a failed job and a waiting job, the
run status should be waiting, **as the run is not done yet.**

Related #34823
2025-07-17 21:12:02 +03:00
8ee96039aa Fix some missed GitHeadRefName when renaming (#35102)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
2025-07-17 14:01:11 +00:00
de1114b4e8 Fix error logs and improve some comments/messages (#35105) 2025-07-17 19:09:54 +08:00
891a827158 Support Basic Authentication for archive downloads (#35087)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Resolves #35083
2025-07-16 10:53:57 -07:00
639ac0026c Run uv run with --frozen (#35097) 2025-07-16 16:53:35 +00:00
f0da1de7e3 Improve package API log handling (#35100)
Simplify code and fix log processing logic
2025-07-16 12:25:49 -04:00
37958e486a Rename pull request GetGitRefName to GetGitHeadRefName (#35093)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
2025-07-16 21:33:33 +08:00