filter pull requests from issues array
use curly braces in one-line ifs