silverwind
bef069610c
Remove superflous tw-content-center ( #33741 )
2025-02-27 19:05:28 +00:00
Quentin
ed7a9dd0b2
Clone repository with Tea CLI ( #33725 )
...
This PR adds "Tea CLI" as a clone method.
<img width="350" alt="Capture d’écran 2025-02-25 à 23 38 47"
src="https://github.com/user-attachments/assets/8e86e54a-998b-45d1-9f20-167b449e79b6 "
/>
---------
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-27 18:18:02 +00:00
Royce Remer
9c0111575f
allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam ( #33684 )
...
Co-authored-by: Royce Remer <rremer@salesforce.com >
Co-authored-by: delvh <dev.lh@web.de >
2025-02-27 17:50:44 +00:00
wxiaoguang
d40e607774
Show info about maintainers are allowed to edit a PR ( #33738 )
...
A simple and clear approach. The existing test
TestPullCompare_EnableAllowEditsFromMaintainer should be good enough.
Fix #21280

2025-02-27 16:47:00 +00:00
wxiaoguang
5df6365d47
Improve admin user view page ( #33735 )
...
1. show more user types
2. show prohibited state
2025-02-27 17:47:37 +08:00
GiteaBot
3a94f4aeb2
[skip ci] Updated translations via Crowdin
2025-02-27 00:32:24 +00:00
Quentin
a570435961
Align sidebar gears to the right ( #33721 )
...
Currently, the issue/pr sidebar is hard to read visually. One of the
reason is that the gear icons make reading difficult because they are
"in the way" when reading, and not aligned together.
This PR proposes to align them on the right.
Actions are also better highlighted this way.
## Screenshots
### Issue
| Before this PR | After this PR |
| --- | --- |
| <img width="322" alt="Capture d’écran 2025-02-25 à 19 59 39"
src="https://github.com/user-attachments/assets/efdd13af-7b22-4f2b-8e65-dd17d6f3ffad "
/> | <img width="322" alt="Capture d’écran 2025-02-25 à 19 58 56"
src="https://github.com/user-attachments/assets/eeacc3f4-5e2c-4558-a4b3-0f1ab4742107 "
/> |
### Pull Request
| Before this PR | After this PR |
| --- | --- |
| <img width="322" alt="Capture d’écran 2025-02-25 à 20 16 12"
src="https://github.com/user-attachments/assets/c274b58b-ad50-4ad8-b3da-91dbabd1b120 "
/> | <img width="322" alt="Capture d’écran 2025-02-25 à 20 15 54"
src="https://github.com/user-attachments/assets/ecfd6d60-a525-4767-872d-2ef84030d81e "
/> |
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-02-27 00:03:23 +02:00
GiteaBot
1ce206746a
[skip ci] Updated translations via Crowdin
2025-02-26 00:32:38 +00:00
Lunny Xiao
75dc373438
Fix inconsistent closed issue list icon ( #33722 )
...
Fixe #33718
Before

After

2025-02-25 15:27:23 -08:00
silverwind
f82a43d830
Update files-changed and labeler globs ( #33720 )
...
Few tweaks, should be self-explanatory.
2025-02-25 11:33:23 -08:00
silverwind
84749bf81c
Enable @typescript-eslint/no-use-before-define ( #33715 )
...
The [rule](https://typescript-eslint.io/rules/no-use-before-define/ ) is
a superset of the eslint base rule, and I tested it with
https://github.com/go-gitea/gitea/pull/33514#discussion_r1969795271
where it does not raise an error for cyclic types.
2025-02-25 16:30:31 +01:00
GiteaBot
0a1a6637df
[skip ci] Updated translations via Crowdin
2025-02-25 00:35:17 +00:00
techknowlogick
ce02d9f918
bump x/crypto & x/oauth2 ( #33704 )
2025-02-24 20:15:18 +00:00
Lunny Xiao
8df11c86ba
Optimize user dashboard loading ( #33686 )
...
Fix #33582
Fix #31698
When a user login, the dashboard should load all feed belongs to him
with no any conditions. The complicated conditions should be applied
only for another user view this user's profile.
2025-02-24 11:29:32 -08:00
Kerwin Bryant
a2601c712d
Add No Results Prompt Message on Issue List Page ( #33699 )
2025-02-24 18:24:56 +00:00
wxiaoguang
8407d1b534
Always show the "rerun" button for action jobs ( #33692 )
...
And improve the mock code.
2025-02-24 08:40:46 +00:00
Arif Er
b1395d5361
Fix OCI image.version annotation for releases to use full semver ( #33698 )
...
This commit fixes the docker build workflow such that semver-tagged
releases use the full semver for the OCI
`org.opencontainers.image.version` annotation, instead of using the
major version only.
This is done by changing the order of the tags that the
`docker/metadata-action` action is told to generate. Since the tags that
the action is told to generate are all of the same priority, the first
in the list will be used to set the annotation.
There is no need to fix the other two docker build workflows, i.e., (i)
the nightly releases and (ii) the rc-tagged releases. This is because
(i) the nightly releases do not get tagged with a semver, so the issue
does not exist, and (ii) rc-tagged releases only get built with one tag,
so the issue of needing to set an order of how tags are generated is
irrelevant.
Resolves go-gitea/gitea#33697 .
2025-02-24 01:37:37 -05:00
wxiaoguang
e6e49fcc63
Fix git empty check and HEAD request ( #33690 )
2025-02-24 02:11:29 +00:00
wxiaoguang
a2c65b0cb5
Fix some user name usages ( #33689 )
...
1. GetUserOrgsList should "order by" lower_name
2. GetIssuePostersWithSearch should search in-case-sensitive-ly
3. LoginName should not be used as username
By the way, remove unnecessary "onGiteaRun"
2025-02-23 12:33:43 +00:00
wxiaoguang
c0d15fd109
Try to fix ACME path when renew ( #33668 )
...
Try to fix #32191
2025-02-23 13:12:08 +08:00
GiteaBot
8460a5dec2
[skip ci] Updated translations via Crowdin
2025-02-23 00:34:45 +00:00
wxiaoguang
1395855116
Improve Open-with URL encoding ( #33666 )
...
Fix #33665
2025-02-21 17:46:05 +00:00
Diana
f6e0d3c6cf
Fix for Maven Package Naming Convention Handling ( #33678 )
...
Make legacy package names could be listed and add tests
---------
Co-authored-by: diana.strebkova@t-systems.com <diana.strebkova@t-systems.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-22 01:38:49 +08:00
wxiaoguang
18c534cb37
Improve swagger generation ( #33664 )
...
Remove most "sed" tricks
---------
Co-authored-by: silverwind <me@silverwind.io >
2025-02-21 00:04:30 -08:00
Lunny Xiao
1de74e2112
Deleting repository should unlink all related packages ( #33653 )
...
Fix #33634
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-21 04:17:56 +00:00
Lunny Xiao
6bef10655d
Fix omitempty bug ( #33663 )
...
Fix #33660
2025-02-20 12:39:21 -08:00
wxiaoguang
76a8619a8f
Upgrade golangci-lint to v1.64.5 ( #33654 )
...
Use `usetesting` instead of deprecated `tenv`.
1. Follow up #33648
2. Make lint pass and add some comments
2025-02-21 00:05:40 +08:00
wxiaoguang
51c9e076c5
Fix mCaptcha bug ( #33659 )
...
Fix #33658
2025-02-20 22:53:38 +08:00
wxiaoguang
2d282cf032
Update Go dependencies (skip blevesearch, meilisearch) ( #33655 )
2025-02-20 22:10:54 +08:00
TheFox0x7
807c82b13b
Use test context in tests and new loop system in benchmarks ( #33648 )
...
Replace all contexts in tests with go1.24 t.Context()
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-20 09:57:40 +00:00
Lunny Xiao
7e8a799989
Add missed changelogs ( #33649 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-20 17:31:07 +08:00
GiteaBot
7ca0c2688b
[skip ci] Updated translations via Crowdin
2025-02-20 00:32:10 +00:00
ericLemanissier
0f97e2af69
git graph: don't show detached commits ( #33645 )
...
Current git graph is not usable for mirrors of repos having a lot of
PRs, as can be seen at
https://demo.gitea.com/ericLemanissier/conan-center-index/graph

Manually running `git log --graph --date-order --all` on such a repo
indeed shows:
```
* commit c4a34bd39d7977c8630177c5f88507000ea3e943
|\ Merge: a4bbd3ad6b 35a102c77c
| | Author: toge <toge.mail@gmail.com >
| | Date: Wed Feb 19 08:36:41 2025 +0000
| |
| | Merge 35a102c77cbc38d84baca0ca63466fb410336ea8 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| |
| * commit 35a102c77cbc38d84baca0ca63466fb410336ea8
| | Author: toge <toge.mail@gmail.com >
| | Date: Wed Feb 19 17:36:35 2025 +0900
| |
| | update 4.4.2
| |
| | * commit 5d610f4fd3c0428731e402a2f618fad9ce055875
| |/| Merge: a4bbd3ad6b fe916fb70a
|/| | Author: Antony Peacock <ant.peacock@gmail.com >
| | | Date: Wed Feb 19 08:31:30 2025 +0000
| | |
| | | Merge fe916fb70a8bf49503cce70a5c7124bcc4314ddc into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| | |
| | * commit fe916fb70a8bf49503cce70a5c7124bcc4314ddc
| | | Author: Antony Peacock <ant.peacock@gmail.com >
| | | Date: Wed Feb 19 08:31:18 2025 +0000
| | |
| | | Remove parquet cmakelist patch
| | |
| | | * commit 9f6d2759d650ec3c86d01bb940e829e7e14220c2
| |_|/| Merge: a4bbd3ad6b f0963429b0
|/| | | Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com >
| | | | Date: Wed Feb 19 08:03:08 2025 +0100
| | | |
| | | | Merge f0963429b0952499da0da7e559f8d53387097307 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| | | |
| | | * commit f0963429b0952499da0da7e559f8d53387097307
| |_|/ Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com >
|/| | Date: Wed Feb 19 08:01:43 2025 +0100
| | |
| | | added cwt-cucumber 2.5
| | |
```
On the other hand, running `git log --graph --date-order --branches
--tags` returns the expected:
```
* commit a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 (HEAD -> master)
| Author: Dan <mstr.danila@gmail.com >
| Date: Fri Feb 14 18:46:11 2025 +0200
|
| grpc: add version 1.69.0 (#26446 )
|
| * grpc: add version 1.69.0
|
| * add cmake tool requires
|
| ---------
|
| Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com >
|
* commit a7868807cb2e21206ebf95278cb588f29a3e2205
| Author: Guillaume Egles <gegles@users.noreply.github.com >
| Date: Thu Feb 13 05:44:35 2025 -0800
|
| openssl: add versions `3.0.16`, `3.1.8`, `3.2.4`, `3.3.3`, `3.4.1`, stop publishing revisions for version `3.0.15` (#26578 )
|
* commit 86057d3e63ac71e2fe48c07bb301f2d54187044d
| Author: Luis Caro Campos <3535649+jcar87@users.noreply.github.com >
| Date: Thu Feb 13 13:34:41 2025 +0000
|
| android-ndk: dont set LD and AS variables (#26581 )
|
| * android-ndk: dont set LD and AS variables
|
| * android-ndk: refactor test package
|
* commit 123e382fafd2f5e811e10faac02efc275c45ec2a
| Author: Nikita <root.kidik@gmail.com >
| Date: Thu Feb 13 12:29:39 2025 +0300
|
| libffi: fix conditionals when building on Windows (#26500 )
|
| * fix: add missing or `clang`
|
| * fix: libffi - always require as tool `automake`
```
2025-02-19 10:35:08 -08:00
wxiaoguang
e2c854535e
Fix PR web route permission check ( #33636 )
...
See the FIXME comment in code. Otherwise, if a repo's issue unit is
disabled, then the PRs can't be edited anymore.
By the way, make the permission log output look slightly better.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: metiftikci <metiftikci@hotmail.com >
2025-02-19 00:55:19 +00:00
metiftikci
bdd09e4b6d
fix: add missing locale ( #33641 )
...
this removed in #23113 but still using in `head_navbar.tmpl`
2025-02-18 16:29:17 -08:00
Kerwin Bryant
8bafb8d00c
Fix Untranslated Text on Actions Page ( #33635 )
...
Fix the problem of untranslated text on the actions page
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-18 11:29:08 +00:00
Guillaume
5931019b19
Improve button layout on small screens ( #33633 )
...
Fix #33160
Better "New Repository" & "New Migration" buttons on home page.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-18 11:02:40 +00:00
yp05327
466e71c312
Update README screenshots ( #33347 )
...
@lunny @techknowlogick
Wait for the update of https://dl.gitea.com/screenshots
Can you move all old screenshots into
https://dl.gitea.com/screenshots/old ?
Then run the action to upload new screenshots to
https://dl.gitea.com/screenshots
Follow #33149 .
As I mentioned here:
https://github.com/go-gitea/gitea/pull/33149#issuecomment-2581787057 ,
the prepare process is almost finished.
The backend technical is using newly added `workflow_dispatch` feature
for Gitea Action to take the screenshots automatically.
Then we can easily sync the screenshots to the latest version without
annoying manual work.
Get more information from https://gitea.com/gitea/deployment
2025-02-18 00:10:30 -08:00
Lunny Xiao
35d1c4254b
Make actions URL in commit status webhooks absolute ( #33620 )
...
Gitea Actions generated target url doesn't contain host and port. So we
need to include them for external webhook visiting.
Fix #33603
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-18 02:20:18 +00:00
wxiaoguang
801136c1e2
Refactor error system ( #33626 )
2025-02-17 12:41:03 -08:00
Lunny Xiao
2b5f090204
Move issue pin to an standalone table for querying performance ( #33452 )
...
Noticed a SQL in gitea.com has a bigger load. It seems both `is_pull`
and `pin_order` are not indexed columns in the database.
```SQL
SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `content_version`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `pin_order`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked`, `time_estimate` FROM `issue` WHERE (repo_id =?) AND (is_pull = 0) AND (pin_order > 0) ORDER BY pin_order
```
I came across a comment
https://github.com/go-gitea/gitea/pull/24406#issuecomment-1527747296
from @delvh , which presents a more reasonable approach. Based on this,
this PR will migrate all issue and pull request pin data from the
`issue` table to the `issue_pin` table. This change benefits larger
Gitea instances by improving scalability and performance.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-17 11:28:37 -08:00
silverwind
662ec5d820
Run spellcheck on tools directory ( #33627 )
...
Add `tools` files to spellcheck and fixed one issue.
2025-02-17 18:39:12 +01:00
wxiaoguang
53f3a45ae2
Refactor error system ( #33610 )
2025-02-16 22:13:17 -08:00
Lunny Xiao
9b436f03eb
Fix project issues list and counting ( #33594 )
...
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-17 05:14:56 +00:00
Lunny Xiao
7ca1aa54d6
Add API to support link package to repository and unlink it ( #33481 )
...
Fix #21062
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
2025-02-16 19:18:00 -08:00
GiteaBot
6626a18eb1
[skip ci] Updated translations via Crowdin
2025-02-17 00:33:47 +00:00
silverwind
221589ba61
Update JS and PY dependencies ( #33587 )
...
- Update all dependencies excluding `tailwindcss` and `idiomorph`
- Tested citation, asciinema, pdf, swagger
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-16 14:14:23 +01:00
Sandro Santilli
59730f7654
[chore] add git mailmap for proper attribution of authorship ( #33612 )
2025-02-16 20:49:28 +08:00
Lunny Xiao
2fef3336f2
Move commits signature and verify functions to service layers ( #33605 )
...
No logic change, just move functions.
2025-02-16 12:24:07 +00:00
Sveinn Thorarinsson
c32a14f655
add spacing between sign in button's icon and text ( #33609 )
...
This pull request edits the head_navbar template and adds spacing
between the icon and the text inside the sign in button of the navbar
(button which displays at the top right of Gitea's pages when the user
is not signed in).
It bugged me that there was no spacing between the button's contents so
I test ran this change quickly on my server and thought it looked a lot
better, so decided to make this pull request. Up to you to decide if you
agree that it looks better :)
2025-02-16 11:27:31 +00:00