Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7863

more flexible redmine number extraction via regex

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • redmine-plugin
    • None

      Short version:
      Give user possibility to define own regex to get redmines issue number from commit message.

      Long version:
      In our case the IDE creates a commit message based on redmine issue currently working on

      Ex:
      proj-4567: aIssue...

      It would be nice if a regex could be defined to extract any redmine issue number format (a regex with one capturing group witch extracts the issue number). So user has more flexibility...
      In our case we would define:
      [a-z]-([\d])

      If you capture the whole regex too, you can replace matches with
      <a href='[url]/issues/show/$2'>$1</a>

      So a commit message like:
      fixed proj-4567, proj-743 and work-9874

      ...would be reconized. With regex user has fully flexibility to define format
      Ex:
      (?:[a-z]-|#|issue ?|refs )([\d])

      and... and... and...

            gaooh gaooh
            manthos manthos
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: