Switch the if around so count() is not called when not necessary
Expand pull request event (print merge status)