GitHub build trigger on PR

Hi, I would like to create an automatic build triggered by pull requests. Is there a way to do it without web hooks? My Jenkins runs in a private subnet

Thanks,
Jakub

A little older text description of the same idea:

Thank you Mark. Is that the only option? I was thinking that maybe Jenkins could poll SCM and trigger jobs for PRs but couldn’t find a definitive answer online.

Yes, you can schedule Jenkins to poll the remote repository. That polling can detect pull requests in plugins like the GitHub branch source plugin and the Gitea plugin. However, that means you’re wasting resources by asking periodic questions instead of being informed when something arrives.

Hi, I would like to create an automatic build triggered by push requests with web hooks. So i have configured with Jenkins URL. It has been worked for 1st build in My Jenkins project after that its not working, But in webhook logs its 200 success code. I have tried with Smee.io and ngrok also facing the same issues.