set the scope correctly when checking if a build/job is a PR in the template