I thought that is the case that the GitHub branch source provides with the
setting under "Discover pull requests from forks":

[image: discover-pull-requests-from-forks.png]

On Wed, Oct 23, 2019 at 9:44 AM Eberhard Beilharz <e...@sil.org> wrote:

> 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
> <https://groups.google.com/d/msgid/jenkinsci-users/570f4ca5-5c27-42df-bd12-4969426d65e5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks!
Mark Waite

-- 
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/CAO49JtG1i_Vmq%3DWnRD2N3qT3Xpo9DSv94ftn_%3Dgz%3DS4TmfB3Ww%40mail.gmail.com.

Reply via email to