I have a scenario where I don't want to allow merging a Pull Request in Github if the title doesn't have a valid JIRA ticket number. I am using Jenkins for our CI/CD so wanted to do some checks using Jenkins itself. I am planning to fail a build in the CI if the build is triggered by merging a Pull Request and the title doesn't have a valid JIRA ticket number in it.
I am using GitHub organization job and did come across github scm filter plugin which claims to provide the PR title checks but after configuring, it doesn't work for me.
Is there a way where I can achieve the PR title checks using Jenkins? or is there a better way of doing this?