GithubHelp home page GithubHelp logo

Comments (11)

bitboxer avatar bitboxer commented on September 26, 2024

That documentation is for an unreleased version. We are working to make that system final before we release it.

from git-commit-notifier.

bessarabov avatar bessarabov commented on September 26, 2024

Did I understand your correctly that message_map is not working in the current version?

from git-commit-notifier.

bitboxer avatar bitboxer commented on September 26, 2024

It is only in the latest branch here on github not in the released version.

from git-commit-notifier.

bessarabov avatar bessarabov commented on September 26, 2024

Thank you, now I get it =)
Wainting for the new release!

from git-commit-notifier.

akzhan avatar akzhan commented on September 26, 2024

I am sick now so documentation will be reviewed later (I suppose this weekend).

from git-commit-notifier.

bitboxer avatar bitboxer commented on September 26, 2024

Version 0.8.0 is now released. You can now update the gem and try the new configuration

from git-commit-notifier.

bessarabov avatar bessarabov commented on September 26, 2024

Thank you!

So, I've upgraded to 0.8.8:

$ gem list|grep git
git-commit-notifier (0.8.0)

But I still can't figure out how to setup message_map. To my config file I've placed

message_map:
  'Commit: (\w*)': 'https://example.com/trac/changeset/\1'

But this is not working =( The config that is shown in exmple is not working either:

message_map:
#  '\brefs\s*\#(\d+)': 'http://example.com/redmine/issues/show/\1'

Can you please show me the working example of this config parameter?

from git-commit-notifier.

akzhan avatar akzhan commented on September 26, 2024

'#' character declares all after it on its line as comment.

By the way, message_map is case sensitive, so you must write Commit as is.

from git-commit-notifier.

bessarabov avatar bessarabov commented on September 26, 2024

@akzhan Thank you.

Yes, of cause I've removed "#" sign, but still noting happen. =(

Here is the screenshot of mail messages I receive: http://yfrog.com/jmf05yp So, there is a string "Commit: 76f343d3e15e440e7960808f07ebfd08ce4439c1", I want the "76f343d3e15e440e7960808f07ebfd08ce4439c1" to become the link to "https://example.com/trac/changeset/76f343d3e15e440e7960808f07ebfd08ce4439c1" and
I've written:

message_map:
  'Commit: (\w*)': 'https://example.com/trac/changeset/\1'

But it doesn't work and I still can't see where is my mistake. =(

The thing I want to achieve is to have the link to https://example.com/trac/changeset/76f343d3e15e440e7960808f07ebfd08ce4439c1 in the mail message. How can this be done?

Thank you again =)

from git-commit-notifier.

bitboxer avatar bitboxer commented on September 26, 2024

The message map only adds links to the commit message text. The text you want to change is not in the commit message.

That area is changed by the option "link_files" but is only able to link to gitorious and gitweb at the moment. You can have a look in the code and add trac to the list of supported systems for that if you want.

from git-commit-notifier.

bessarabov avatar bessarabov commented on September 26, 2024

Oh! Now I understand. Sorry that it took so many questions and answers to figure out such a simple thing =) There is no info in "Integration of links to other websites" section that message_map is working only with the commit message (well, maybe I could get it from the parameter name, but I didn't).

I know nothing about ruby, so I'm not sure that I will manage to add trac myself (but I will try).

from git-commit-notifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.