Assembla offers a free git repository that is private and an integrated bug tracking system - you can change ticket statuses or track time directly through your commit messages. They also offer custom server-side hooks - which allow you to write your own logic and then use it - anything from rejecting commits that do not match certain rules of yours, to starting a CI build after a commit is received.