You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -9,7 +9,7 @@ Email is delivered as text or HTML with changes refined per word. Emails
9
9
have a scannable subject containing the first sentence of the commit as well
10
10
as the author, project and branch name.
11
11
12
-
It''s also possible to send a mail to a newsgroup using NNTP.
12
+
It's also possible to send a mail to a newsgroup using NNTP.
13
13
14
14
For example:
15
15
@@ -37,22 +37,28 @@ We do not support ruby 1.8.6 because of nokogiri gem.
37
37
38
38
Install the gem:
39
39
40
-
sudo gem install git-commit-notifier
40
+
```bash
41
+
sudo gem install git-commit-notifier
42
+
```
41
43
42
44
After you installed the gem, you need to configure your git repository. Add a file called
43
45
"post-receive" to the "hooks" directory of your git repository with this content:
44
46
45
-
#!/bin/sh
46
-
git-commit-notifier path_to_config.yml
47
+
```bash
48
+
#!/bin/sh
49
+
git-commit-notifier path_to_config.yml
50
+
```
47
51
48
-
(Don''t forget to make that file executable.)
52
+
(Don't forget to make that file executable.)
49
53
50
54
An example for the config file can be found in [config/git-notifier-config.yml.sample](http://github.com/bitboxer/git-commit-notifier/blob/master/config/git-notifier-config.yml.sample).
51
55
52
56
If you want to send mails on each commit instead on each push, you should add a file called "post-commit" with this content:
53
57
58
+
```bash
54
59
#!/bin/sh
55
60
echo"HEAD^1 HEAD refs/heads/master"| git-commit-notifier path_to_config.yml
61
+
```
56
62
57
63
## Integration with Redmine, Bugzilla, MediaWiki
58
64
@@ -87,8 +93,8 @@ handled commits to not send repeated messages about commits.
87
93
By default all commits are tracked through the whole repository so after a merge
88
94
you should not receive messages about those commits already posted in other branches.
89
95
90
-
This behaviour can be changed using unique\_commits\_per\_branch option. When it''s true,
91
-
you should receive new message about commit when it''s merged in other branch.
96
+
This behaviour can be changed using unique\_commits\_per\_branch option. When it's true,
97
+
you should receive new message about commit when it's merged in other branch.
92
98
93
99
Yet another option, skip\_commits\_older\_than (in days), should be used to not inform about
94
100
old commits in processes of forking, branching etc.
@@ -97,7 +103,7 @@ old commits in processes of forking, branching etc.
97
103
98
104
* Fork the project.
99
105
* Make your feature addition or bug fix.
100
-
* Add tests for it. This is important so I don''t break it in a
106
+
* Add tests for it. This is important so I don't break it in a
101
107
future version unintentionally.
102
108
* Commit, do not mess with rakefile, version, or history.
103
109
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
0 commit comments