Implement views for pull_request and repository