uocsclub / tryoutmanager

Tool for hosting uoCSClub tryouts for csgames
0 stars 1 forks source link

Investigate whether Gitolite allows for server-side post-push hooks #29

Open cannotparse opened 6 years ago

cannotparse commented 6 years ago

As per Jules suggestion: We should investigate whether Gitolite allows for server-side post-push hooks which we can use either through Pyolite or through a dedicated internal endpoint (i.e. a push to a branch results in a curl requrest to our endpoint or some analogous action, which updates our models).

Faeriol commented 6 years ago

Im gonna assume we can add our own post-receive hooks server side (because thats a git feature). And then we get to do whatever we want with that, remembering that we want to avoid long running hooks Now if I could get a test server going... I could check this out

cannotparse commented 6 years ago

Hmmm, well I was able to find this... so I guess we could package a few hooks and on setup we place them in the right spot. Here is a python example as well

and here's how we add it to the gitolite conf