Refactor to use github API for commit miner