When using a Jenkins pipeline, how can I get the user who created a GitHub pull request? Or even better, how can I check if the user that opened the PR is an org member (or collaborator) or if this is an external PR?
We're using multibranch pipeline jobs to build the master branch and the PRs. Jenkins checks if this is a trusted PR and only applies changes to `Jenkinsfile` if they come for trusted users. However, I'd like to be able to prevent the build from happening automatically when the PR is not from a trusted user. Thanks for any pointers! Eberhard -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/570f4ca5-5c27-42df-bd12-4969426d65e5%40googlegroups.com.