Question

We're using Gitlab for source control, and MantisBT for issue tracking (boss's orders!)

Now we want to implement some kind of regex in the Gitlab commit messages, when a commit contains 'Mantis#1' that it automaticly generates a URL to http://mantis.local/view.php?id=1

Is this possible in Gitlab, (without having to write in Ruby?), and if so, how ?

Was it helpful?

Solution

It's impossible without writing code. As variant you can try change config file:

Here described logic for Internal issue trackers. Here described rules for internal issue trackers. You can try configure your own tracker support.

As example (I don't know which urls in your issue tracker)

issues_tracker:
  mantisbt:
    title: "MantisBT"
    project_url: "http://mantis.local/projects/:issues_tracker_id"
    issues_url: "http://mantis.local/view.php?id=:id"
    new_issue_url: "http://mantis.local/projects/:issues_tracker_id/issues/new"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top