wellington-junio / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

Allow parameters for pre- and post-receive scripts #581

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently when a project uses pre- or post-receive scripts, these scripts have 
to be maintained by an operation team that has access to the file system of 
GitBlit. However, some of the parameters of the scripts could be added by the 
project itself.

E.g. it could be possible to add a script, that sends emails to real email 
addresses when something is pushed to the server. If the parameter 
EMAIL_ADDRESSES could be filled by the project, and would be used in the 
post-receive script then, no GitBlit administrator had to do something for each 
project that wants  to use that script.

As a result, the following would be possible.

1. A GitBlit administrator adds a script that can be used by all projects. He 
has declared which parameters are mandatory and optional, and what defaults of 
these parameter are.
2. A project / repository owner that has the permissions is now able to add 
that script e.g. as a post-receive script.
3. He has then to fill the mandatory parameters of that script, and may change 
the default parameters that are optional.

We are using currently version 1.6.2 (the current one).

Original issue reported on code.google.com by markusli...@gmail.com on 4 Apr 2015 at 9:01