Commit Graph

19016 Commits (4890434b1e902a8409e69aceee4c747f5a6d423f)
 

Author SHA1 Message Date
TheFox0x7 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
3 weeks ago
GiteaBot fa9191b7b9 [skip ci] Updated translations via Crowdin 3 weeks ago
yp05327 e177239529
Fix typo in gitea downloader test and add missing codebase in `ToGitServiceType` (#33146) 3 weeks ago
wxiaoguang 9c00e065a1
Fix form width (#33151)
Fix #33150
3 weeks ago
yp05327 124079871b
Convert github.com/xanzy/go-gitlab into gitlab.com/gitlab-org/api/client-go (#33126)
Fix #32985
3 weeks ago
wxiaoguang 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
3 weeks ago
Lunny Xiao 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.
3 weeks ago
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>
3 weeks ago
GiteaBot ec84687df9 [skip ci] Updated translations via Crowdin 3 weeks ago
yp05327 32d45ee069
Update status check for all supported on.pull_request.types in Gitea (#33117)
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
3 weeks ago
yp05327 0d7d2ed39d
Support the new exit code for `git remote` subcommands for git version >=2.30.0 (#33129)
Fix #32889

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 weeks ago
wxiaoguang 34dfc25b83
Make git clone URL could use current signed-in user (#33091)
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
4 weeks ago
Lunny Xiao 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>
4 weeks ago
GiteaBot 485d184a5c [skip ci] Updated translations via Crowdin 4 weeks ago
TheFox0x7 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.
4 weeks ago
Lunny Xiao 2000a679fa
remove unused code 4 weeks ago
Lunny Xiao d675289302
Fix bug 4 weeks ago
Chai-Shi 1a95d9d6a1
fix empty repo updated time (#33120)
fixes #33119 

routers/web/repo/view_home.go

![image](https://github.com/user-attachments/assets/b0d6c5f5-7abc-478a-8d41-4b44dbd460aa)

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>
4 weeks ago
wxiaoguang 80e4f4c4eb
Refactor package (routes and error handling, npm peer dependency) (#33111) 4 weeks ago
wxiaoguang ef736b7e27
Refactor legacy JS (#33115) 4 weeks ago
Lunny Xiao 87ed579357
Fix test 4 weeks ago
Lunny Xiao a125a58e81
Fix test 4 weeks ago
Kerwin Bryant 6b86304589 fix 4 weeks ago
Lunny Xiao 1fd53fd6e8 Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page 4 weeks ago
Lunny Xiao 96e050ec63
Fix bugs 4 weeks ago
Kerwin Bryant 07e48964b5 fix lint error 4 weeks ago
Kerwin Bryant 91f972ce82 fix 4 weeks ago
Lunny Xiao 647cd304a0
Remove unused file 4 weeks ago
Lunny Xiao cdf05fb726
Add missing changes 4 weeks ago
Lunny Xiao cd3a9afe8f
implement save user ShowFileViewTreeSidebar 4 weeks ago
Lunny Xiao 64c7e08df2
Fix bug 4 weeks ago
wxiaoguang 40765b5d45
Fix repo empty guide (#33114) 4 weeks ago
Kerwin Bryant c949f42d4d fix 4 weeks ago
Kerwin Bryant ad9b126ad6 fix 4 weeks ago
GiteaBot 3c1c508421 [skip ci] Updated translations via Crowdin 4 weeks ago
wxiaoguang cf60734a4d
Fix dropdown menu header and mobile view (#33108)
![image](https://github.com/user-attachments/assets/3f831c8c-ef87-4282-880a-c2738f3e1d17)

----

![image](https://github.com/user-attachments/assets/c4c0519b-cfa6-42b4-bd28-205ee514eb34)

----

![image](https://github.com/user-attachments/assets/8624a605-9f2b-4905-9cbc-0af073972874)
4 weeks ago
ChristopherHX 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>
4 weeks ago
GiteaBot 3078826d01 [skip ci] Updated translations via Crowdin 4 weeks ago
wxiaoguang df9d1fe8c5
Trivial fixes (#33103)
1. remove `gock` dependency, it is not needed
2. fix a regression from org private profile readme
4 weeks ago
wxiaoguang 3d544a3ad3
Fix empty git repo handling logic (#33101)
Fix #33092
4 weeks ago
wxiaoguang 2b064b8637
Refactor legacy line-number and scroll code (#33094)
1. remove jquery
2. rewrite the "line number selection", fix various edge cases
3. fix the scroll
4 weeks ago
Kemal Zebari 188e0ee8e4
Use `Project-URL` metadata field to get a PyPI package's homepage URL (#33089)
Resolves #33085.
4 weeks ago
Kerwin Bryant 2a8f9c8531 fix 4 weeks ago
Lunny Xiao a1cee9e4e2 Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page 4 weeks ago
Lunny Xiao 09000c4ce9
Fix bug 4 weeks ago
Kerwin Bryant 087f0d41bd fix 4 weeks ago
Lunny Xiao fe63c5fbc1
Fix test 4 weeks ago
Kerwin Bryant b1b24282ae
Merge branch 'main' into add-file-tree-to-file-view-page 4 weeks ago
wxiaoguang 68972a9947
Clean up legacy form CSS styles (#33081) 4 weeks ago
GiteaBot a739c784d9 [skip ci] Updated translations via Crowdin 4 weeks ago