Get more info about a PR.

Since the Jenkins PR plugin does now set it in the environ.
Merge branch 'develop' of github.com:saltstack/salt into develop
Split the env genertion into parts