Comments (11)
That documentation is for an unreleased version. We are working to make that system final before we release it.
from git-commit-notifier.
Did I understand your correctly that message_map is not working in the current version?
from git-commit-notifier.
It is only in the latest branch here on github not in the released version.
from git-commit-notifier.
Thank you, now I get it =)
Wainting for the new release!
from git-commit-notifier.
I am sick now so documentation will be reviewed later (I suppose this weekend).
from git-commit-notifier.
Version 0.8.0 is now released. You can now update the gem and try the new configuration
from git-commit-notifier.
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.
'#' 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.
@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.
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.
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)
- add URL of repository HOT 2
- emphasizing first line of commit message HOT 3
- Set Reply-to to recipient address? HOT 5
- Pushing a new branch resulted in Iconv::IllegalSequence in diff_to_html HOT 5
- Creation of a branch triggers notification mails for ALL commits in the repository HOT 4
- Add parameter to gem HOT 5
- ${repo_name} is not getting expanded as the project name for gitweb URL's
- COMMIT_LINK_MAP for gitlabhq missing parent in url
- gitlabhq file_link feature produces 404s HOT 5
- support trac with multiple repositories HOT 1
- nokogiri 1.6.0 dropped support for ruby 1.8.3 HOT 1
- I've got a Permission problem with git-commit-notifier HOT 4
- Sorry for Problem again HOT 4
- How to change auther HOT 3
- Link file summary list to web view repository HOT 1
- Invalid multibyte escape
- Pushing to GitLab with link_files fails under ruby 2 HOT 1
- Commits suppressed with unique_commits_per_branch:false and include_branches:[...]
- How to config smtps(port 465) in the file of git-notifier-config.yml
- Tag/deploy new version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-commit-notifier.