wxiaoguang
a920fcfd91
Fix db engine ( #32351 )
...
Fix #32349
3 weeks ago
wxiaoguang
d70af38447
Refactor the DB migration system slightly ( #32344 )
...
Introduce "idNumber" for each migration, and clarify the difference
between the migration ID number and database version.
3 weeks ago
yp05327
7cf611d197
Fix broken image when editing comment with non-image attachments ( #32319 )
...
Fix #32316
3 weeks ago
Lunny Xiao
2abdbe88b5
Fix disable 2fa bug ( #32320 )
3 weeks ago
Lunny Xiao
d46d34a655
Upgrade rollup to 4.24.0 ( #32312 )
3 weeks ago
Lunny Xiao
500774277c
Upgrade vue to 3.5.12 ( #32311 )
3 weeks ago
Tim
de2ad2e1b1
Make admins adhere to branch protection rules ( #32248 )
...
This introduces a new flag `BlockAdminMergeOverride` on the branch
protection rules that prevents admins/repo owners from bypassing branch
protection rules and merging without approvals or failing status checks.
Fixes #17131
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
3 weeks ago
박상철
620f19610e
Prevent from submitting issue/comment on uploading ( #32263 )
...
fix #32262
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
3 weeks ago
Lunny Xiao
a264c46fb0
Add warn log when deleting inactive users ( #32318 )
...
Add log for the problem #31480
3 weeks ago
Zettat123
9206fbb55f
Add `DISABLE_ORGANIZATIONS_PAGE` and `DISABLE_CODE_PAGE` settings for explore pages and fix an issue related to user search ( #32288 )
...
These settings can allow users to only display the repositories explore page.
Thanks to yp05327 and wxiaoguang !
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 weeks ago
wangjingcun
3d6ccbac3f
chore: fix some function names in comment ( #32300 )
...
fix some function names in comment
3 weeks ago
6543
d638067d3c
API: enhance SearchIssues swagger docs ( #32208 )
...
this will result in better api clients generated out of the openapi docs
... for SearchIssues
---
*Sponsored by Kithara Software GmbH*
4 weeks ago
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`.
4 weeks ago
Zettat123
9116665e9c
Always update expiration time when creating an artifact ( #32281 )
...
Fix #32256
4 weeks ago
cloudchamb3r
2b8ff419a7
Add `gh-access-token` flag into backport script ( #32283 )
...
The current backport script does not have github access token flag.
This patch will be useful when encountered rate limit issue.
4 weeks ago
wxiaoguang
0196b3583a
Warn users when they try to use a non-root-url to sign in/up ( #32272 )
4 weeks ago
cloudchamb3r
603fca1e27
Fix null errors on conversation holder ( #32258 ) ( #32266 )
...
fix #32258
Errors in the issue was due to unhandled null check. so i fixed it.
### Detailed description for Issue & Fix
To reproduce that issue, the comment must be deleted on Conversation
tab.
#### Before Delete
<img width="1032" alt="image"
src="https://github.com/user-attachments/assets/72df61ba-7db6-44c9-bebc-ca1178dd27f1 ">
#### After Delete (AS-IS)
<img width="1010" alt="image"
src="https://github.com/user-attachments/assets/36fa537e-4f8e-4535-8d02-e538c50f0dd8 ">
gitea already have remove logic for `timeline-item-group`, but because
of null ref exception the later logic that removes `timeline-item-group`
could be not be called correctly.
4 weeks ago
谈笑风生间
d50ed0abf7
Support requested_reviewers data in comment webhook events ( #26178 )
...
close #25833
Currently, the information for "requested_reviewers" is only included in
the webhook event for reviews. I would like to suggest adding this
information to the webhook event for "PullRequest comment" as well, as
they both pertain to the "PullRequest" event.
Also, The reviewer information for the Pull Request is not displayed
when it is approved or rejected.
4 weeks ago
wxiaoguang
5242e520c4
Make `owner/repo/pulls` handlers use "PR reader" permission ( #32254 )
...
Fix #32253 (partially)
1 month ago
a1012112796
c4b2808b89
make `show stats` work when only one file changed ( #32244 )
...
fix https://github.com/go-gitea/gitea/issues/32226
in https://github.com/go-gitea/gitea/pull/27775 , it do some changes to
only show diff file tree when more than one file changed. But looks it
also break the `diff-file-list` logic, which looks not expected change.
so try fix it.
/cc @silverwind
example view:
![image](https://github.com/user-attachments/assets/281e9c4f-a269-4d36-94eb-a132058aea87 )
Signed-off-by: a1012112796 <1012112796@qq.com>
1 month ago
Zettat123
81aec6d621
Update scheduled tasks even if changes are pushed by "ActionsUser" ( #32246 )
...
Fix #32219
---------
Co-authored-by: delvh <dev.lh@web.de>
1 month ago
Zettat123
74664b08a0
Support migrating GitHub/GitLab PR draft status ( #32242 )
...
Resolve #32196
1 month ago
Lunny Xiao
9df5ddaf44
Only rename a user when they should receive a different name ( #32247 )
...
Fix #31996
1 month ago
charles
6fced33581
Fix dropdown content overflow ( #31610 )
...
close #31602
![圖片](https://github.com/go-gitea/gitea/assets/30816317/43722917-bc5e-4e06-b0de-db52552a20df )
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 month ago
wxiaoguang
afa8dd45af
Make git push options accept short name ( #32245 )
...
Just like what most CLI parsers do: `--opt` means `opt=true`
Then users could use `-o force-push` as `-o force-push=true`
1 month ago
Bruno Sofiato
900ac62251
Allow code search by filename ( #32210 )
...
This is a large and complex PR, so let me explain in detail its changes.
First, I had to create new index mappings for Bleve and ElasticSerach as
the current ones do not support search by filename. This requires Gitea
to recreate the code search indexes (I do not know if this is a breaking
change, but I feel it deserves a heads-up).
I've used [this
approach](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/analysis-pathhierarchy-tokenizer.html )
to model the filename index. It allows us to efficiently search for both
the full path and the name of a file. Bleve, however, does not support
this out-of-box, so I had to code a brand new [token
filter](https://blevesearch.com/docs/Token-Filters/ ) to generate the
search terms.
I also did an overhaul in the `indexer_test.go` file. It now asserts the
order of the expected results (this is important since matches based on
the name of a file are more relevant than those based on its content).
I've added new test scenarios that deal with searching by filename. They
use a new repo included in the Gitea fixture.
The screenshot below depicts how Gitea shows the search results. It
shows results based on content in the same way as the current version
does. In matches based on the filename, the first seven lines of the
file contents are shown (BTW, this is how GitHub does it).
![image](https://github.com/user-attachments/assets/9d938d86-1a8d-4f89-8644-1921a473e858 )
Resolves #32096
---------
Signed-off-by: Bruno Sofiato <bruno.sofiato@gmail.com>
1 month ago
Zettat123
0fe5e2b08c
Allow maintainers to view and edit files of private repos when "Allow maintainers to edit" is enabled ( #32215 )
...
Fix #31539
1 month ago
Lunny Xiao
aebb741c08
Use per package global lock for container uploads instead of memory lock ( #31860 )
...
This PR uses a per-package lock instead of a global lock for container
uploads. So that different packages can be uploaded simultaneously.
1 month ago
cloudchamb3r
cb739f5333
Fix checkbox bug on private/archive filter ( #32236 )
...
fix #32235
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 month ago
wxiaoguang
6029d78ab5
Improve the maintainblity of the reserved username list ( #32229 )
1 month ago
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
1 month ago
6543
bdd655f2bd
Allow filtering PRs by poster in the ListPullRequests API ( #32209 )
...
as title
---
*Sponsored by Kithara Software GmbH*
1 month ago
Lunny Xiao
fa35ace9fb
Fix bug when there are multiple triggers with workflow dispatch ( #32200 )
1 month ago
GiteaBot
6551847aa8
[skip ci] Updated licenses and gitignores
1 month ago
GiteaBot
e530568666
[skip ci] Updated translations via Crowdin
1 month 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>
1 month 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
1 month ago
GiteaBot
6a4eb126bd
[skip ci] Updated translations via Crowdin
1 month 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.
1 month ago
Job
7e68bc8823
Fix PR creation on forked repositories ( #31863 )
...
Resolves #20475
1 month ago
GiteaBot
0bd75390f5
[skip ci] Updated translations via Crowdin
1 month 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>
1 month ago