valberg/djangit

Git hooks

halfd opened this issue · 1 comments

There should be global git hooks, that update the database whenever a repo is touched.

Also look at how hooks can be exposed through the djangit frontend, such that the user can edit events to take place at different parts of the git process.

Good idea. Following questions come to mind:

  • Should it be a part of core?
  • Should users have the possibility to edit their own scripts (creating security issues), or should we have predefined events that users can use (send email, twitter, GET-request, whatever)?

I'm thinking something in the directions of having some templates that get filled with information provided by the user, and then written to the pre/post-receive hooks of a repository.