Make code simpler by doing a check once
Check pull request status before merging

Fixes #88.