-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set more environment variables to allow their use in custom hooks #316
Comments
#317 adds one such variable, do you have a list of variables you think should be exposed ? |
@strk Yes, I opened the #317 😛 |
since #317 is in 1.1, so I change this to 1.1 |
I would take that into the 1.0 release because users like @afdev82 are able to provide hooks for protected branches until we release native protected branches. This change is quite simple. |
It just needs another lgtm |
@bkcsoft Yes, it's fine. Thanks ;) |
I didn't understand the target version, I thought was the 1.0.0 release in the end. |
You are right, it will be available for 1.0.0 |
In order to write custom hooks that use some variables, Gitea should export them in the environment.
For example, currently I need to know the user that is pushing a branch.
I think this could be easily done adding an
os.Setenv
line like here.The text was updated successfully, but these errors were encountered: