小鸡普鲁金
helga-koji的Python项目详细描述
关于
赫尔加是一个Python聊天机器人。完整的文档可以在 http://helga.readthedocs.org。
这个koji插件允许helga响应irc中与koji相关的命令 并打印有关生成和任务的信息。
估计当前(正在进行的)生成何时完成:
03:14 < ktdreyer> helgabot: current ceph build 03:14 < helgabot> ktdreyer, ceph-12.2.1-1.el7cp should finish building in 3 min 45 sec https://cbs.centos.org/koji/buildinfo?buildID=20348
了解最近完成的生成完成所需的时间:
03:14 < ktdreyer> helgabot: last ceph build 03:14 < helgabot> ktdreyer, ceph-12.2.2-0.el7 build duration was 2 hr 49 min https://cbs.centos.org/koji/buildinfo?buildID=21149
查询包裹:
03:14 < ktdreyer> helgabot: ceph package 03:14 < helgabot> ktdreyer, ceph is https://cbs.centos.org/koji/packageinfo?packageID=534
查找用户的任务:
03:14 < ktdreyer> helgabot: soandso's tasks 03:14 < helgabot> ktdreyer, soandso's kernel scratch build should be done in 1 hr 26 min (https://koji.example.com/koji/taskinfo?taskID=15741633)
按url估计任务:
< ktdreyer> helgabot: https://koji.example.com/koji/taskinfo?taskID=12456 < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min.
安装
这个koji插件是available from PyPI,所以您可以简单地安装 它带有pip:
pip install helga-koji
如果你想破解helga koji源代码,在你的virtualenv中 在运行helga的地方,从github克隆此存储库的副本,然后 运行 python setup.py develop。
配置
Helga Koji使用txkoji库, 它在~/.koji/config.d/*.conf和 /etc/koji.conf.d/*.conf。要为koji实例配置helga koji, 磁盘上此位置必须有配置文件。这就是为什么 正常的koji client工作。
待办事项
观看任务:
< ktdreyer> helgabot: watch https://koji.example.com/koji/taskinfo?taskID=12456 < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min. I'll tell you when it's done.
或者代表其他人观看:
< ktdreyer> helgabot: watch https://koji.example.com/koji/taskinfo?taskID=12456 for adeza < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min. I'll tell that person when it's done.