Lunny Xiao
e96ef97989
Upgrade dependencies ( #35384 )
...
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
- ~Upgrade golang to 1.25~ blocked by the issue
https://github.com/go-swagger/go-swagger/issues/3220
- Upgrade minor versions of most dependencies
- Upgrade github.com/google/go-github version to v74
- Fix meilisearch because of sdk interface change
- Use github.com/Necoro/html2text which is a fork instead of html2text
because of https://github.com/jaytaylor/html2text/issues/67 which
resulted in complie failure.
- Fix some deprecated methods of gitlab go client.
2025-09-02 23:13:38 -04:00
junoberryferry
ec75bdbe68
Use github.com/mholt/archives replace github.com/mholt/archiver ( #35390 )
...
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 cancelled
Fix #32620
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: junoberryferry <user@example.tld >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-09-01 19:40:12 +00:00
Lunny Xiao
0c6326e6ab
Upgrade xz to v0.5.15 ( #35377 )
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 cancelled
2025-08-29 17:44:33 +00:00
Sebastian Ertz
9b5a3e9c9c
Update chroma to v2.20.0 ( #35220 )
...
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
https://github.com/alecthomas/chroma/releases/tag/v2.20.0
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-08-11 13:00:20 +02:00
NorthRealm
793815adf7
Upgrade go to 1.24.6 ( #35235 )
2025-08-08 13:03:30 +00:00
Lunny Xiao
54fe47fbca
Change some columns from text to longtext and fix column wrong type caused by xorm ( #35141 )
...
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 cancelled
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
silverwind
36a19f2569
Update to go 1.24.5 ( #35031 )
...
https://go.dev/doc/devel/release#go1.24.5
2025-07-10 11:48:36 -04:00
Lunny Xiao
90eb831418
Upgrade chi to v5.2.2 ( #34798 )
2025-06-20 18:23:46 +00:00
Lunny Xiao
ee334886f3
upgrade orgmode to v1.8.0 ( #34721 )
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 cancelled
2025-06-17 19:30:43 +00:00
wxiaoguang
65986f423f
Refactor embedded assets and drop unnecessary dependencies ( #34692 )
...
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
Benefits:
1. smaller binary size (reduces more than 1MB)
2. better control of the assets details
3. fewer unmaintained dependencies
4. faster startup if the assets are not needed
5. won't hang up editors when open "bindata.go" by accident
2025-06-12 03:59:33 +00:00
silverwind
18bafcc378
Bump minimum go version to 1.24.4 ( #34699 )
...
Fixes 3 open govulncheck issues.
2025-06-12 03:33:36 +00:00
TheFox0x7
e9f5105e95
Migrate to urfave v3 ( #34510 )
...
migrate cli to urfave v3
add more cli tests
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-10 12:35:12 +00:00
wxiaoguang
92e7e98c56
Update x/crypto package and make builtin SSH use default parameters ( #34667 )
2025-06-09 19:51:02 +00:00
badhezi
0534eddd16
Use run-name and evaluate workflow variables ( #34301 )
...
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
This addresses https://github.com/go-gitea/gitea/issues/34247
depends on https://gitea.com/gitea/act/pulls/137
I couldn't find any previous implementation for `run-name` support on
workflows so I created one.
Key points:
All dispatched workflows, scheduled workflows and detected workflows
(from different hooks) will use and evaluate `run-name` if exists, with
the corresponding gitea context and variables. This will be used as the
Action run title and replace the default commit message being used
today.
Had to change act package jobparser (see link above)
and create two helpers
3a1320c70d/models/actions/utils.go (L86)
and
3a1320c70d/services/actions/context.go (L169)
to pass the correct types to
[GenerateGiteaContext](https://github.com/go-gitea/gitea/pull/34301/files#diff-9c9c27cb61a33e55ad33dc2c2e6a3521957a3e5cc50ddf652fdcd1def87b044dR86 )
and
[WithGitContext](65c232c4a5/pkg/jobparser/jobparser.go (L84)
)
respectively.
<img width="1336" alt="Screenshot 2025-04-28 at 17 13 01"
src="https://github.com/user-attachments/assets/73cb03d0-23a0-4858-a466-bbf0748cea98 "
/>
2025-05-20 02:24:10 +00:00
Lunny Xiao
2a660b4a1b
Upgrade go-github v61 -> v71 ( #34385 )
...
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
There will be a possible bug when migrating from Github
https://github.com/google/go-github/issues/3229
This PR upgrades go-github from v61 to v71 to resolve that problem.
2025-05-06 20:10:14 -07:00
Mingzhu Yan
7bd2ce7109
fix go version ( #34299 )
...
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
go cmd will download and cache a copy of the Go toolchain, go1.24 is not
a valid version since https://github.com/golang/go/issues/57631 .
2025-04-29 12:24:53 +00:00
Lunny Xiao
648df8a5e1
Fix the ci build ( #34309 )
...
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
https://github.com/go-gitea/gitea/actions/runs/14722306878/job/41318217870
A fork has been created under https://gitea.com/gitea/go-xsd-duration
2025-04-28 20:47:16 -07:00
wxiaoguang
58d2a87c6c
update go&js dependencies ( #34262 )
2025-04-23 21:22:40 +00:00
Lunny Xiao
42f45f1489
Update net package ( #34228 )
2025-04-17 06:06:58 -04:00
Rowan Bohde
c57304ac3f
Add middleware for request prioritization ( #33951 )
...
This adds a middleware for overload protection that is intended to help protect against malicious scrapers.
It does this via [`codel`](https://github.com/bohde/codel ), which will perform the following:
1. Limit the number of in-flight requests to some user-defined max
2. When in-flight requests have reached their begin queuing requests.
Logged-in requests having priority above logged-out requests
3. Once a request has been queued for too long,
it has a probabilistic chance to be rejected based on how overloaded the entire system is.
When a server experiences more traffic than it can handle,
this keeps latency low for logged-in users and rejects just
enough requests from logged-out users to not overload the service.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-04-14 16:25:48 +02:00
wxiaoguang
32258e0f22
Update go mod dependencies ( #33988 )
...
blevesearch is skipped because it causes errors
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2025-03-25 05:51:52 +00:00
TheFox0x7
189873719b
update jwt and redis packages ( #33984 )
2025-03-23 10:13:16 -04:00
Lunny Xiao
65bb837fa2
Upgrade golang net from 0.35.0 -> 0.36.0 ( #33795 )
2025-03-04 23:25:09 +01:00
Lunny Xiao
2c8bdd2233
Upgrade act to 0.261.4 and actions-proto-go to v0.4.1 ( #33760 )
...
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
Include https://gitea.com/gitea/act/pulls/129 Fix #33657
And https://gitea.com/gitea/actions-proto-def/pulls/14
2025-03-01 20:02:58 +00:00
Lunny Xiao
ae4a3d7708
upgrade go-crypto from 1.1.5 to 1.1.6 ( #33745 )
...
Fix #33296
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-28 14:06:47 +00:00
techknowlogick
7535af20da
bump x/crypto & x/oauth2 ( #33704 )
2025-02-24 20:15:18 +00:00
wxiaoguang
e6759f356d
Update Go dependencies (skip blevesearch, meilisearch) ( #33655 )
2025-02-20 22:10:54 +08:00
techknowlogick
d88b012525
go1.24 ( #33562 )
...
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
update to use go1.24
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-13 18:00:00 +08:00
wxiaoguang
517a367abe
Use ProtonMail/go-crypto to replace keybase/go-crypto ( #33402 )
...
Fix #33400
The keybase/go-crypto is no longer maintained and it generates malformed
signatures, ProtonMail/go-crypto is the actively maintained fork.
2025-01-27 09:14:08 +08:00
yp05327
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
Fix #32985
2025-01-08 13:10:43 +08:00
wxiaoguang
386c1ed908
Refactor HTMLFormat, update chroma render, fix js error ( #33136 )
...
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
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
Rowan Bohde
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
wxiaoguang
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
Lunny Xiao
8eecca3478
Remove aws go sdk package dependency ( #33029 )
...
This PR removed the dependency of `github.com/aws/aws-sdk-go/aws`
Patially fix for #33023
2024-12-30 06:30:28 +00:00
wxiaoguang
dafadf0028
Refactor fixture loading for testing ( #33024 )
...
To help binary size and testing performance
2024-12-30 04:06:57 +00:00
techknowlogick
420cda18e6
bump x/net ( #32896 )
2024-12-18 22:40:04 +00:00
wxiaoguang
2910f384d5
Fix misuse of PublicKeyCallback ( #32810 )
...
Only upgrading the ssh package is not enough.
2024-12-13 03:57:37 +00:00
Lunny Xiao
39a01016cd
Upgrade dependency crypto library ( #32750 )
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
2024-12-11 13:07:48 -05:00
Lunny Xiao
5ab7aa700f
Use new mail package instead of an unmintained one ( #32682 )
...
Resolve #18664
2024-12-05 06:33:43 +08:00
wxiaoguang
0aedb03996
Fix LFS route mock, realm, middleware names ( #32488 )
...
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
1. move "internal-lfs" route mock to "common-lfs"
2. fine tune tests
3. fix "realm" strings, according to RFC:
https://datatracker.ietf.org/doc/html/rfc2617 :
* realm = "realm" "=" realm-value
* realm-value = quoted-string
4. clarify some names of the middlewares, rename `ignXxx` to `optXxx` to
match `reqXxx`, and rename ambiguous `requireSignIn` to `reqGitSignIn`
2024-11-13 16:58:09 +08:00
silverwind
cad313e64f
Update github.com/meilisearch/meilisearch-go
( #32484 )
...
Result of `go get -u github.com/meilisearch/meilisearch-go && make
tidy`.
Fixes: https://github.com/go-gitea/gitea/security/dependabot/78
2024-11-12 15:55:01 -05:00
Royce Remer
54146e62c0
Make LFS http_client parallel within a batch. ( #32369 )
...
Signed-off-by: Royce Remer <royceremer@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-04 04:49:08 +00:00
wxiaoguang
5e6523aa57
Update go dependencies ( #32389 )
2024-10-31 12:05:54 +00:00
YR Chen
08c963c921
Update github.com/go-enry/go-enry to v2.9.1 ( #32295 )
...
`go-enry` v2.9.1 includes latest file patterns from Linguist, which can
identify more generated file type, eg. `pdm.lock`.
2024-10-19 20:51:55 +08:00
Lunny Xiao
fa35ace9fb
Fix bug when there are multiple triggers with workflow dispatch ( #32200 )
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
2024-10-07 03:50:38 +00:00
yp05327
70b7df0e5e
Support repo license ( #24872 )
...
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 #278
Close #24076
## Solutions:
- Use
[google/licenseclassifier](https://github.com/google/licenseclassifier/ )
Test result between
[google/licensecheck](https://github.com/google/licensecheck ) and
[go-license-detector](https://github.com/go-enry/go-license-detector ):
https://github.com/go-gitea/gitea/pull/24872#issuecomment-1560361167
Test result between
[google/licensecheck](https://github.com/google/licensecheck ) and
[google/licenseclassifier](https://github.com/google/licenseclassifier/ ):
https://github.com/go-gitea/gitea/pull/24872#issuecomment-1576092178
- Generate License Convert Name List to avoid import license templates
with same contents
Gitea automatically get latest license data from[
spdx/license-list-data](https://github.com/spdx/license-list-data ).
But unfortunately, some license templates have same contents. #20915
[click here to see the
list](https://github.com/go-gitea/gitea/pull/24872#issuecomment-1584141684 )
So we will generate a list of these license templates with same contents
and create a new file to save the result when using `make
generate-license`. (Need to decide the save path)
- Save License info into a new table `repo_license`
Can easily support searching repo by license in the future.
## Screen shot
Single License:

Multiple Licenses:

Triggers:
- [x] Push commit to default branch
- [x] Create repo
- [x] Mirror repo
- [x] When Default Branch is changed, licenses should be updated
Todo:
- [x] Save Licenses info in to DB when there's a change to license file
in the commit
- [x] DB Migration
- [x] A nominal test?
- [x] Select which library to
use(https://github.com/go-gitea/gitea/pull/24872#issuecomment-1560361167 )
- [x] API Support
- [x] Add repo license table
- ~Select license in settings if there are several licenses(Not
recommended)~
- License board(later, not in this PR)

---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Denys Konovalov <kontakt@denyskon.de >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: 6543 <m.huber@kithara.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2024-10-01 15:25:08 -04:00
Manuel Valls Fernández
5015de4d9a
Bump minio-go to latest version ( #32156 )
...
Current minio-go version has issues with S3 compatible storages like
Backblaze or Wasabi. This was fixed in
https://github.com/minio/minio-go/pull/1980 .
2024-09-30 09:57:48 +08:00
ConcurrentCrab
8a9fd7f771
Add pure SSH LFS support ( #31516 )
...
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
Fixes #17554
/claim #17554
Docs PR https://gitea.com/gitea/docs/pulls/49
To test, run pushes like: `GIT_TRACE=1` git push. The trace output
should mention "pure SSH connection".
2024-09-27 10:27:37 -04:00
Lunny Xiao
8cdf4e29c4
Fix CI ( #32062 )
2024-09-17 19:35:59 +00:00
Zettat123
def1c9670b
Support migration from AWS CodeCommit ( #31981 )
...
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
This PR adds support for migrating repos from [AWS
CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html ).
The access key ID and secret access key are required to get repository
information and pull requests. And [HTTPS Git
credentials](https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html )
are required to clone the repository.
<img
src="https://github.com/user-attachments/assets/82ecb2d0-8d43-42b0-b5af-f5347a13b9d0 "
width="680" />
The AWS CodeCommit icon is from [AWS Architecture
Icons](https://aws.amazon.com/architecture/icons/ ).
<img
src="https://github.com/user-attachments/assets/3c44d21f-d753-40f5-9eae-5d3589e0d50d "
width="320" />
2024-09-11 07:49:42 +08:00