add hook type in `addprojecthook`

when we create a hook, we need to set it's type
push_events/merge_requests_events/...