Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab commit messages

Tags:

gitlab

mantis

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 ?

like image 995
Sander Avatar asked Apr 16 '26 21:04

Sander


1 Answers

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"
like image 88
Zzet Avatar answered Apr 19 '26 23:04

Zzet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!