Refactor github plugin to follow same pattern as pivotal