Adding events to repo hook object

I need to create a hook with certain events. Since I am using the egit core for everything else I am doing with github, I thought it would be useful if it had this functionality.