add check for invalid pr and added pr only option

Fixes #193 and closes #184
Merge pull request #236 from ros-infrastructure/issue_193

add check for invalid pr and added pr only option