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
api.go [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
api_org.go
api_test.go
base.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +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
captcha.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
context.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
context_cookie.go
context_model.go
context_request.go
context_response.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00
context_template.go
context_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
csrf.go
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
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
user.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
utils.go
xsrf.go
xsrf_test.go