You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #9093, but more focused on the available variables.
Also related to #8935, as it may benefit from having this defined.
As mentioned in #10337 (comment), this is an issue for discussing a public API for git hook environments.
What should be available in these environments?
Should certain things only be available in certain situations?
We need to be careful not to bog down the system by loading extraneous data for the sake of a hook environment. The more expensive it is, the harder it will be to justify.
I've found a few places where environments are set:
Similar to #9093, but more focused on the available variables.
Also related to #8935, as it may benefit from having this defined.
As mentioned in #10337 (comment), this is an issue for discussing a public API for git hook environments.
What should be available in these environments?
Should certain things only be available in certain situations?
We need to be careful not to bog down the system by loading extraneous data for the sake of a hook environment. The more expensive it is, the harder it will be to justify.
I've found a few places where environments are set:
gitea/models/helper_environment.go
Line 42 in 48ce135
gitea/cmd/serv.go
Lines 201 to 209 in 95013fd
gitea/routers/repo/http.go
Lines 268 to 284 in cca13ae
gitea/routers/repo/http.go
Line 316 in cca13ae
Ideally when implemented these would all converge for ease of maintanence, if possible.
The text was updated successfully, but these errors were encountered: