Add direction param to PR's getAll method