linux - GitLab: How to filter bad formats? -


i want make sure users wont able push formats. check file format before uploading file gitlab server. web hooks affects specific project, while want whole server filtered. idea?

ok, found out do. used hooks. can add own script inside path:

/opt/gitlab/embedded/service/gitlab-shell/hooks/

you can edit existing samples. wrote in ruby , script in bash, make sure add "#!/bin/bash" (or whatever script language write) file header. make sure bring file chmod 755 or higher, , file name should event name (without format, "pre-rereceive" example).

notice parameters, can read in "pre-receive.sample" notes. luck.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -