c0751ef116
Fix upload file form ( #33230 )
...
Fix #33228
2025-01-13 03:39:15 +08:00
be4e961240
Fix mirror bug ( #33224 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
Fix #33200
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-12 18:46:37 +08:00
9024b79933
Remove unused CSS styles and move some styles to proper files ( #33217 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-01-12 05:16:22 +00:00
a068462ac0
Refactor context repository ( #33202 )
2025-01-12 03:39:46 +00:00
a7e750414c
[skip ci] Updated translations via Crowdin
2025-01-12 00:35:53 +00:00
fd7d393c67
Fix unpin hint on the pinned pull requests ( #33207 )
2025-01-12 00:05:33 +00:00
8c6d7076b7
fix(cache): cache test triggered by non memory cache ( #33220 )
...
Change SlowCacheThreshold to 30 milliseconds so it doesn't trigger on
non memory cache
Closes: https://github.com/go-gitea/gitea/issues/33190
Closes: https://github.com/go-gitea/gitea/issues/32657
2025-01-12 04:33:43 +08:00
5c150ce9b0
Update README.md ( #33149 )
...
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
~~Waiting for the upload of screenshots~~
I have a good idea about the screenshots. I will do it later.
---------
Co-authored-by: Gary Wang <git@blumia.net >
2025-01-10 16:03:07 +08:00
d7ec23febf
Fix editor markdown not incrementing in a numbered list ( #33187 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Amended the logic for newPrefix in the MarkdownEditor to resolve
incorrect number ordering.
Fixes #33184
Attached screenshot of fixed input similar to issue
<img width="175" alt="Screenshot 2025-01-09 at 23 59 24"
src="https://github.com/user-attachments/assets/dfa23cf1-f3db-4b5e-99d2-a71bbcb289a8 "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 07:28:38 +00:00
d3083d2198
Some small refactors ( #33144 )
2025-01-10 06:00:06 +00:00
e5f3c16587
Fix sync fork for consistency ( #33147 )
...
Fixes #33145
An integration test could be added.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 05:29:55 +00:00
189e7409b7
Use updated path to s6-svscan after alpine upgrade ( #33185 )
...
Fix #33163
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 10:16:37 +08:00
65aae0912a
Fix raw file API ref handling ( #33172 )
...
Fix #33164 and add more tests
2025-01-10 01:31:49 +00:00
8f8ad8e272
[skip ci] Updated translations via Crowdin
2025-01-10 00:32:29 +00:00
5b31077b68
Fix ACME panic ( #33178 )
...
Fix #33177 , Manually tested:
````
1.7364311850484018e+09 info maintenance started background certificate maintenance {"cache": "0x1400ca64180"}
1.736431185054049e+09 info obtain acquiring lock {"identifier": "example.com"}
1.736431185058073e+09 info obtain lock acquired {"identifier": "example.com"}
1.736431185058133e+09 info obtain obtaining certificate {"identifier": "example.com"}
````
2025-01-09 23:53:50 +00:00
39d51e7c82
Automerge supports deleting branch automatically after merging ( #32343 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Resolve #32341
~Depends on #27151~
- [x] It will display a checkbox of deleting the head branch on the pull
request view page when starting an auto-merge task.
- [x] Add permission check before deleting the branch
- [x] Add delete branch comment for those closing pull requests because
of head branch or base branch was deleted.
- [x] Merge `RetargetChildrenOnMerge` and `AddDeletePRBranchComment`
into `service.DeleteBranch`.
2025-01-10 03:51:03 +08:00
2298ff2152
Fix branch dropdown not display ref name ( #33159 )
...
Before:

After:

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-09 18:43:49 +00:00
5f679c1c59
Add .run to gitignore ( #33175 )
...

2025-01-09 18:11:35 +00:00
a5043af8ea
Fix assignee list overlapping in Issue sidebar ( #33176 )
...
Fix #33170


2025-01-10 01:58:37 +08:00
68ca73b716
Fix pam auth test regression ( #33169 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
fixes: https://github.com/go-gitea/gitea/issues/33168
2025-01-09 21:09:11 +08:00
88366f280e
Move repo size to sidebar ( #33155 )
...

2025-01-09 07:45:51 +00:00
ba5e3a5161
Fix fuzz test ( #33156 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-09 15:15:47 +08:00
2a02734f93
Refactor older tests to use testify ( #33140 )
...
Refactor checks to use assert/require
Use require.Eventually for waiting in elastic and meilisearch tests
Use require to exit early instead of assert
2025-01-09 09:21:47 +08:00
fa9191b7b9
[skip ci] Updated translations via Crowdin
2025-01-09 00:32:21 +00:00
e177239529
Fix typo in gitea downloader test and add missing codebase in ToGitServiceType
( #33146 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-01-08 18:34:53 +00:00
9c00e065a1
Fix form width ( #33151 )
...
Fix #33150
2025-01-08 23:57:18 +08:00
124079871b
Convert github.com/xanzy/go-gitlab into gitlab.com/gitlab-org/api/client-go ( #33126 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #32985
2025-01-08 13:10:43 +08:00
386c1ed908
Refactor HTMLFormat, update chroma render, fix js error ( #33136 )
...
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.
And fix #33141 , fix #33139
2025-01-08 03:44:32 +00:00
67aeb1f896
Add missed transaction on setmerged ( #33079 )
...
Follow #33045 . There are two updates on `Set Merged`, which should be in
one transaction.
This also introduced some refactors for changeissuestatus to make it
more clear.
2025-01-08 03:16:56 +00:00
a8e7caedfa
add submodule diff links ( #33097 )
...
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.
Related #25888
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-08 01:38:30 +00:00
ec84687df9
[skip ci] Updated translations via Crowdin
2025-01-08 00:32:07 +00:00
32d45ee069
Update status check for all supported on.pull_request.types in Gitea ( #33117 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Thanks @Zettat123
Follow #33116
Fix #33051
on.pull_request.types doc:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
on.pull_request.types added in this PR:
```
assigned, unassigned, review_requested, review_request_removed, milestoned, demilestoned, labeled, unlabeled
```
unsupported types in Gitea:
```
// Unsupported activity types:
// converted_to_draft, ready_for_review, locked, unlocked, auto_merge_enabled, auto_merge_disabled, enqueued, dequeued
```
TODO:
- [x] add test
2025-01-08 01:58:47 +08:00
0d7d2ed39d
Support the new exit code for git remote
subcommands for git version >=2.30.0 ( #33129 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #32889
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-07 20:42:45 +08:00
34dfc25b83
Make git clone URL could use current signed-in user ( #33091 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
close #33086
* Add a special value for "SSH_USER" setting: `(DOER_USERNAME)`
* Improve parseRepositoryURL and add tests (now it doesn't have hard
dependency on some setting values)
Many changes are just adding "ctx" and "doer" argument to functions.
By the way, improve app.example.ini, remove all `%(key)s` syntax, it
only makes messy and no user really cares about it.
Document: https://gitea.com/gitea/docs/pulls/138
2025-01-07 13:17:44 +08:00
98637fe76e
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index ( #33106 )
...
This PR fixes a performance problem when reviewing a pull request in a
big instance which have many records in the `review` table.
Traditionally, we should add more indexes in that table. But since
dismissed reviews of 1 pull request will not be too many as expected in
a common repository. Filtering reviews in the memory should be more
quick .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-07 10:50:09 +08:00
485d184a5c
[skip ci] Updated translations via Crowdin
2025-01-07 00:32:09 +00:00
4a18c72262
Remove extended glob pattern from branch protection UI ( #33125 )
...
Underlying go library has no support for it
Fixes: https://github.com/go-gitea/gitea/issues/33121
---
I never touched frontend tests so pointers how to write them are
welcome.
This can be either fix or workaround, depending if this is something
gitea should support in the future or not. The golang side is unlikely
to get updates though.
2025-01-07 01:23:50 +02:00
1a95d9d6a1
fix empty repo updated time ( #33120 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
fixes #33119
routers/web/repo/view_home.go

Calling `updateContextRepoEmptyAndStatus` will always ask the DB to
update the updated Unix attributes.
When revisiting the repo's home page, the timestamp will be updated
unexpectedly, so I added the needsUpdate variable to check whether, in
the end, the commitment to db update is necessary if columns have not
changed at all.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-07 01:54:06 +08:00
80e4f4c4eb
Refactor package (routes and error handling, npm peer dependency) ( #33111 )
2025-01-06 22:45:20 +08:00
ef736b7e27
Refactor legacy JS ( #33115 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-06 17:38:42 +08:00
40765b5d45
Fix repo empty guide ( #33114 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-01-06 12:07:52 +08:00
3c1c508421
[skip ci] Updated translations via Crowdin
2025-01-06 00:34:05 +00:00
cf60734a4d
Fix dropdown menu header and mobile view ( #33108 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run

----

----

2025-01-05 21:20:22 +00:00
4237736029
workflow_dispatch use workflow from trigger branch ( #33098 )
...
* htmx updates the input form on branch switch
* add workflow warning to dispatch modal
* use name if description of input is empty
* show error if workflow_dispatch not available on branch
Closes #33073
Closes #33099
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-05 21:47:18 +08:00
3078826d01
[skip ci] Updated translations via Crowdin
2025-01-05 00:35:35 +00:00
df9d1fe8c5
Trivial fixes ( #33103 )
...
1. remove `gock` dependency, it is not needed
2. fix a regression from org private profile readme
2025-01-04 22:25:50 +00:00
3d544a3ad3
Fix empty git repo handling logic ( #33101 )
...
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (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
Fix #33092
2025-01-04 18:47:24 +08:00
2b064b8637
Refactor legacy line-number and scroll code ( #33094 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
1. remove jquery
2. rewrite the "line number selection", fix various edge cases
3. fix the scroll
2025-01-04 10:56:07 +08:00
188e0ee8e4
Use Project-URL
metadata field to get a PyPI package's homepage URL ( #33089 )
...
Resolves #33085 .
2025-01-03 21:09:47 +00:00
68972a9947
Clean up legacy form CSS styles ( #33081 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-03 04:01:19 +00:00