GitHub Enterprise Support

This is reopen pull-request from #23