没有项目描述
gar-cron的Python项目详细描述
gar cron
github activity reminder cron-向您发送有关github提交活动的提醒的脚本。默认情况下,当3天或更长时间没有提交活动时,它会发送邮件。Read this DEV.to article to understand more about this tool。
安装
pip install gar-cron
用法
gar-cron
配置
当您第一次运行gar cron时,它将提示您设置config.json
中的值及其路径。您需要设置的值如下(您需要一个smtp邮件帐户来拍摄电子邮件,像gmail/hotmail这样的流行帐户在没有oauth的情况下不支持此功能,所以请在gmx.com或其他位置注册一个):
{
"github_username": "<your github username>",
"alert_email": "<your email address>",
"smtp_server":"<smtp server>",
"smtp_email": "<smtp sending email>",
"smtp_username": "<smtp username>",
"smtp_password": "<smtp password>",
"smtp_port": "<smtp port>"
}
完成此操作后,再次运行gar-cron
以确保其正常工作。然后,您可以在linux上通过运行crontab -e
将其配置为用户cron作业,或者在windows上通过控制面板对其进行调度。
为了测试电子邮件提醒,您可以在config.json中临时配置其他人的github_username
,该人在运行之前很久没有提交过邮件提醒。