Search code examples
gitlabgitlab-cijiragitlab-ci-runner

Block PR merge on GitLab when there is no valid JIRA ID


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?


Solution

  • 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.

    enter image description here