Creating get data method for pullrequests