Created an interface for github events to reduce the lines of code.