fixes to the pull request automation code

Fixes #240
Merge pull request #241 from ros-infrastructure/issue_240

fixes to the pull request automation code