replaced PR client code with newer library code

This would replace the existing PR integration with identical logic but leveraging the new versioned library.