Lunny Xiao
c2217670dd
Move admin routers from /admin to /-/admin ( #32189 )
...
Resolve #32181
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 month ago
wxiaoguang
dd83cfcacc
Refactor CSRF token ( #32216 )
1 month ago
GiteaBot
368b0881f5
[skip ci] Updated translations via Crowdin
1 month ago
Zettat123
4eacc61f64
Fix incorrect "Target branch does not exist" in PR title ( #32222 )
1 month ago
Ehsan Shirvanian
8bee7fcf7e
update git book link to v2 ( #32221 )
...
Fix the dead link `https://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository ` for
empty repositories to help how to clone the repository
to `https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository `
which is v2 of the git book. This also updates download git links
1 month ago
GiteaBot
f9a9b08896
[skip ci] Updated translations via Crowdin
1 month ago
cloudchamb3r
2e12343fc4
Add null check for responseData.invalidTopics ( #32212 )
...
<img width="553" alt="Screenshot 2024-10-08 at 10 49 10 AM"
src="https://github.com/user-attachments/assets/faeef64d-684a-4aba-b7fc-c7c6a0301abe ">
`responseData.invalidTopics` can be null but it wasn't handled.
1 month ago
Lunny Xiao
d6d3c96e65
Fix bug when a token is given public only ( #32204 )
1 month ago
GiteaBot
d3ada91ea4
[skip ci] Updated translations via Crowdin
2 months ago
6543
bdd655f2bd
Allow filtering PRs by poster in the ListPullRequests API ( #32209 )
...
as title
---
*Sponsored by Kithara Software GmbH*
2 months ago
Lunny Xiao
fa35ace9fb
Fix bug when there are multiple triggers with workflow dispatch ( #32200 )
2 months ago
GiteaBot
6551847aa8
[skip ci] Updated licenses and gitignores
2 months ago
GiteaBot
e530568666
[skip ci] Updated translations via Crowdin
2 months ago
Yarden Shoham
479c31bb4d
Upgrade htmx to 2.0.3 ( #32192 )
...
Release notes:
https://github.com/bigskysoftware/htmx/releases/tag/v2.0.3
Tested `Star`, `Watch`, and the admin dashboard page. All functionality
remains unchanged.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2 months ago
Zisu Zhang
66923e02d2
Enhance USER_DISABLED_FEATURES to allow disabling change username or full name ( #31959 )
...
Fix #31958
Enhanced `USER_DISABLED_FEATURES`(also `EXTERNAL_USER_DISABLE_FEATURES`)
option in `[admin]` section.
Added following values:
- `change_username`: Disable change username
- `change_full_name`: Disable change full name
---
Progress:
- [x] Update code
- [x] Update translations
2 months ago
GiteaBot
6a4eb126bd
[skip ci] Updated translations via Crowdin
2 months ago
yp05327
5d6d025c9b
Add support for searching users by email ( #30908 )
...
Fix #30898
we have an option `SearchByEmail`, so enable it, then we can search user
by email.
Also added a test for it.
2 months ago
Job
7e68bc8823
Fix PR creation on forked repositories ( #31863 )
...
Resolves #20475
2 months ago
GiteaBot
0bd75390f5
[skip ci] Updated translations via Crowdin
2 months ago
Bruno Sofiato
d266d190bd
Fixed race condition when deleting documents by repoId in ElasticSearch ( #32185 )
...
Resolves #32184
---------
Signed-off-by: Bruno Sofiato <bruno.sofiato@gmail.com>
2 months ago
sommerf-lf
0b1b4030e6
add {{TEST_MINIO_ENDPOINT}} for local testing "with/without" docker + fix pgsql testing doc ( #32105 )
...
while testing i found out that testing locally as documented in the
changed README.md for pgsql isn't working because of the minio
dependency. reworked this to by default be still docker, but allow for
for local with only minio in docker and testing on bare metal.
also depending on this: fixed docs for running pgsql test
Closes : #32168 (by changing documentation for pgsql tests)
Closes : #32169 (by changing documentation, Makefile & pgsql.ini.tmpl:
adding {{TEST_MINIO_ENDPOINT}})
sry for the combined pr, but when testing I ran into this issue and
first thought they were related and now finally address the same
problem: not beeing able to run pgsql integration tests as described in
the according README.md
2 months ago
GiteaBot
4416a4199b
[skip ci] Updated translations via Crowdin
2 months ago
Lunny Xiao
a989404e23
Fix javascript error when an anonymous user visiting migration page ( #32144 )
...
This PR fixes javascript errors when an anonymous user visits the
migration page.
It also makes task view checking more restrictive.
The router moved from `/user/task/{id}/status` to
`/username/reponame/-/migrate/status` because it's a migrate status.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 months ago
Lunny Xiao
3a4a1bffbe
Make oauth2 code clear. Move oauth2 provider code to their own packages/files ( #32148 )
...
Fix #30266
Replace #31533
2 months ago
yp05327
70b7df0e5e
Support repo license ( #24872 )
...
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:
![image](https://github.com/go-gitea/gitea/assets/18380374/41260bd7-0b4c-4038-8592-508706cffa9f )
Multiple Licenses:
![image](https://github.com/go-gitea/gitea/assets/18380374/34ce2f73-7e18-446b-9b96-ecc4fb61bd70 )
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)
![image](https://github.com/go-gitea/gitea/assets/18380374/2c3c3bf8-bcc2-4c6d-8ce0-81d1a9733878 )
---------
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>
2 months ago
Zettat123
f4b8f6fc40
Fix the logic of finding the latest pull review commit ID ( #32139 )
...
Fix #31423
2 months ago
Jason Song
13283873e9
Ensure `GetCSRF` doesn't return an empty token ( #32130 )
...
Since page templates keep changing, some pages that contained forms with
CSRF token no longer have them.
It leads to some calls of `GetCSRF` returning an empty string, which
fails the tests. Like
3269b04d61/tests/integration/attachment_test.go (L62-L63)
The test did try to get the CSRF token and provided it, but it was
empty.
2 months ago
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 .
2 months ago
Bruno Sofiato
99d0510cb6
Change the code search to sort results by relevance ( #32134 )
...
Resolves #32129
Signed-off-by: Bruno Sofiato <bruno.sofiato@gmail.com>
2 months ago
GiteaBot
ad749fbf25
[skip ci] Updated translations via Crowdin
2 months ago
ConcurrentCrab
8a9fd7f771
Add pure SSH LFS support ( #31516 )
...
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".
2 months ago
GiteaBot
fdb1df9eca
[skip ci] Updated translations via Crowdin
2 months ago
Lunny Xiao
3f9e360142
Don't join repository when loading action table data ( #32127 )
2 months ago
charles
3269b04d61
Notify the user when the file path contains leading or trailing spaces and fix the error message for invalid file names. ( #31507 )
...
close #31478
2 months ago
yp05327
6fa962f409
Fix wrong status of `Set up Job` when first step is skipped ( #32120 )
...
Fix #32089
2 months ago
Lunny Xiao
5a8568459d
Fix bug when deleting a migrated branch ( #32075 )
...
After migrating a repository with pull request, the branch is missed and
after the pull request merged, the branch cannot be deleted.
2 months ago
Lunny Xiao
4947bec836
Include collaboration repositories on dashboard source/forks/mirrors list ( #31946 )
...
Fix #13489
In the original implementation, only `All` will display your owned and
collaborated repositories. For other filters like `Source`, `Mirrors`
and etc. will only display your owned repositories.
This PR removed the limitations. Now except `collbrations`, other
filters will always display your owned and collaborated repositories.
2 months ago
Lunny Xiao
e2f365b55c
Display head branch more comfortable on pull request view ( #32000 )
...
This PR do some minor improvements for head branch display on pull
request view UI.
- [x] Remove the link if the head branch has been deleted with a
tooltip, so that users will not result in a 404 page
- [x] Display a label if this pull request is an agit based one.
![图片](https://github.com/user-attachments/assets/872f26b6-f1cf-4427-9e41-e3a5b176dfa4 )
2 months ago
Kemal Zebari
aadbe0488f
Truncate commit message during Discord webhook push events ( #31970 )
...
Resolves #31668 .
2 months ago
Lunny Xiao
2c6fa6c1e0
Fix template bug of pull request view ( #32072 )
...
Caused by #31924
2 months ago
Lunny Xiao
6eb5950835
Allow set branch protection in an empty repository ( #32095 )
2 months ago
Lunny Xiao
3f2d8f8730
Fix panic when cloning with wrong ssh format. ( #32076 )
2 months ago
Zettat123
fcedf634d5
Fix bug in getting merged pull request by commit ( #32079 )
2 months ago
GiteaBot
6afb22448b
[skip ci] Updated translations via Crowdin
2 months ago
techknowlogick
38e3d8b4e6
use rebuilt mssql-2017 image ( #32109 )
2 months ago
cloudchamb3r
e1f0598c8f
Fix Bug in Issue/pulls list ( #32081 )
...
fix #32080
## After
### for opened issues
<img width="1199" alt="Screenshot 2024-09-19 at 6 29 31 PM"
src="https://github.com/user-attachments/assets/86cf48ad-5e4b-4dcb-8abe-4d7fd74e0aec ">
### for closed issues
<img width="1208" alt="Screenshot 2024-09-19 at 6 29 37 PM"
src="https://github.com/user-attachments/assets/a16bc545-bfcf-49a4-be52-3e7334910482 ">
### for all issues
<img width="1340" alt="Screenshot 2024-09-20 at 12 07 12 PM"
src="https://github.com/user-attachments/assets/b2309c8f-e59d-44e9-ae3b-bf54e1196169 ">
2 months ago
GiteaBot
48cdde98bb
[skip ci] Updated licenses and gitignores
2 months ago
Lunny Xiao
9e0db1b646
Fix rename branch permission bug ( #32066 )
...
The previous implementation requires admin permission to rename branches
which should be write permission.
Fix #31993
2 months ago
ChristopherHX
b594cec2bd
Fix artifact v4 upload above 8MB ( #31664 )
...
Multiple chunks are uploaded with type "block" without using
"appendBlock" and eventually out of order for bigger uploads.
8MB seems to be the chunk size
This change parses the blockList uploaded after all blocks to get the
final artifact size and order them correctly before calculating the
sha256 checksum over all blocks
Fixes #31354
2 months ago
GiteaBot
74f2ee3124
[skip ci] Updated translations via Crowdin
2 months ago