I want to block the PR merge automatically when there is no backing valid JIRA id. I'm using GitLab. Any suggestion/reference links to achieve this?
You can add a job to check if JIRA
id is present. If it's not present fail the job.
Then in settings ( settings --> merge requests ) enable only allow merge when pipleines succeed.