[minor] Implemented the pull request API