Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-355

Add an option to "Require commits to be associated with a JIRA issue" to only check commit messages (not branch name)

    Details

    • Type: New Feature
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Done
    • Affects Version/s: 5.3.31
    • Fix Version/s: 5.7.0
    • Labels:
      None

      Description

      The "Require commits to be associated with a JIRA issue" Script Pre Hook currently allows a commit if either the commit message or the branch name has a JIRA issue. However, for pull request workflows this isn't very useful because the branch will always have an issue key in the name but the branches are short lived. What we really need is to ensure that every commit that gets merged into master has a JIRA issue key in the commit message.

      It makes sense to also add this option to the "Require Pull Request to be associated with a JIRA issue" Script Merge Check.

        Attachments

          Structure

            Activity

              People

              Assignee:
              rlander Reece Lander
              Reporter:
              jchoules Joanna Choules
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel