Move pull request check to external script.