KostyaSha / github-integration-plugin

Jenkins GitHub Integration Plugin
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Integration+Plugin
MIT License
98 stars 85 forks source link

Trigger job only if PR was merged #343

Open ashkraba opened 3 years ago

ashkraba commented 3 years ago

Hello, thanks a lot for your great work.

Is there a possibility to trigger the job only if PR was merged? I need all variables from PR trigger and "Pull request closed" trigger works fine for my, but I don't want to trigger a job when PR was manually closed in GitHub (only if merged). "Not mergeable" option doesn't help. Branch triggering doesn't help because I need a lot of variables from PR triggering.

Thanks a lot!