factored and used github data extraction for pr