3 Star 12 Fork 3

abaddon / gitosc-hook-mail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#GITOSC-HOOK-MAIL

在项目中为了给其他的相关人员推送开发进度,如果自己在提交完成后手动去告知,一般来说比较麻烦,借助Git Hook提交回调功能,Gitosc-hook-mail实现了在提交完成后自动发邮件给预设的观察者,这样方便相关人员及时同步信息。 *关于如何在Git@OSC上设置提交回调服务,请查阅HOOK钩子 *

如何使用

git clone git@git.oschina.net:ieinstein/gitosc-hook-mail.git gitosc-hook-mail.git
cd gitosc-hook-mail.git
mv config.sample.php config.php

config.php 配置

return array(
'host'=>'smtp邮件服务器的地址,例如 stmp.163.com',
'name'=>'发件人姓名,例如 Meander River.',
'account'=>'发件人账户,例如 example@email.com',
'accpwd'=>'发件人账户密码',
'authpassword'=>'Git@OSC上GIT HOOK设置的密码(为防止恶意请求)',
'to'=>array(
    array(
        '收件人邮箱1',
        '收件人姓名1'
    ),
	array(
        '收件人邮箱2',
        '收件人姓名2'
    ),
	'收件人邮箱3'
),
'cc'=>array(
    array(
        '抄送人',
        '抄送人姓名'
    	)
	)
);

部署

将配置好的目录gitosc-hook-mail.git上传到网站服务器(LAMP或者LNMP)的根目录下即可,得到访问地址:http://exampleurl.com/gitosc-hook-mail.git/index.php
再到Git@OSC上你的项目中,管理->PUSH钩子->开启钩子,填写上述钩子地址与密码(注意密码需与config.php文件设置相同)

有任何疑问请与作者联系

E-mail:ieinstein@163.com QQ:1485619676(请注明Git@OSC)

The MIT License (MIT) Copyright (c) 2015 abaddon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Git@OSC hook 自动发送邮件到指定的邮箱,可以用于项目跟进报告 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/ieinstein/gitosc-hook-mail.git
git@gitee.com:ieinstein/gitosc-hook-mail.git
ieinstein
gitosc-hook-mail
gitosc-hook-mail
master

搜索帮助