1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/services/context
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
..
upload Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
access_log.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api_org.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api.go [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
base_form.go [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
base_path.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
base_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
base.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
captcha.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
context_cookie.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_model.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_request.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_response.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00
context_template.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
context.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
csrf.go Refactor CSRF token (#32216) 2024-10-10 03:48:21 +00:00
org.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
package.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
pagination.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
permission.go Allow maintainers to view and edit files of private repos when "Allow maintainers to edit" is enabled (#32215) 2024-10-11 19:08:19 +00:00
private.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
repo.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
response.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
utils.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
xsrf_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
xsrf.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00