0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-14 17:03:43 +01:00
gitea/models
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
2025-01-07 13:17:44 +08:00
..
actions Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
activities Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
admin Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00:00
asymkey Move delete deploy keys into service layer (#32201) 2024-12-18 04:10:38 +00:00
auth Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
avatars
db Fix unittest and repo create bug (#33061) 2024-12-31 18:45:05 +08:00
dbfs Enable unparam linter (#31277) 2024-06-11 18:47:45 +00:00
fixtures Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
git Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issues Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2025-01-07 10:50:09 +08:00
migrations Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
organization Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
packages Refactor maven package registry (#33049) 2024-12-31 05:30:52 +00:00
perm Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
project Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
pull
renderhelper Refactor render system (orgmode) (#32671) 2024-11-29 16:08:29 +08:00
repo Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
secret Clarify Actions resources ownership (#31724) 2024-08-01 09:04:04 +00:00
shared/types
system
unit Add DEFAULT_MIRROR_REPO_UNITS and DEFAULT_TEMPLATE_REPO_UNITS options (#32416) 2024-11-11 00:11:00 +00:00
unittest Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
user Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
webhook Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
main_test.go
repo_test.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00
repo.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00