访问bugzilla rest api的模型和脚本。
bztools的Python项目详细描述
此软件包当前使用“remoteobjects”模型、Mozilla的“bugzilla”rest API和可选的Mozilla LDAP“phonebook”(访问Bug Assignees的管理器和Mozilla电子邮件地址)。_远程对象:http://sixaspart.github.com/remoteobjects/
…_ rest api:https://wiki.mozilla.org/bugzilla:restapi
。_电话簿:https://github.com/mozilla/mobile phonebook
查看代码:
。(可选)使用virtualenvwrapper创建virtualenv::
。安装pip::
安装bztools的依赖项::
\运行setup.py以便将脚本安装到bin目录::
现在您将在
虚拟环境的``/bin``目录中安装``bzattach`'。要使用脚本,您必须使用“work on bztools”激活这个
环境。
请注意:如果在
处理其他脚本期间对bugzilla/文件(代理、模型、实用程序)进行了任何更改,您需要按照上面的说明重新安装脚本,以便从bugzilla获取更改
usage
----
example::
password=get_credentials()
'resolved',
'product':'core,firefox',
'resolution':'fixed',
'include\fields':''u default,attachments',
}
打印错误
email nag script
---------
执行dryrun::
python脚本/email nag.py-d-q查询/tracking firefox 12-q查询/tracking firefox 13
您可以传入几个配置文件(查询/中的示例),这些文件应包含以下信息::
query name
priority
query url,params}(选择一种格式-请参阅查询/了解每种格式的示例)
脚本执行以下操作:
*从Mozilla LDAP电话簿收集员工和经理的当前列表
**您将需要使用LDAP信息对电话簿进行本地配置:
在scripts/configs/config.json中
{
“用户名”:“you@mozilla.com”、
“密码”:“xxxxxxxxxxxx”
}
*使用提供的每个查询轮询Bugzilla API,并为每个错误生成一个错误字典,找到被指派者,如果可能的话,指派者的经理-然后将错误添加到经理的错误桶中,以便在以后的电子邮件通知中
*通过经理字典,用分配给该经理的团队成员的错误构造一封电子邮件
*将消息输出到控制台,并等待使用输入发送/编辑/取消(保存对于手动通知)
*在最后,它提供了未通过电子邮件发送的所有错误的列表,并提供了该错误列表的bugzilla的url
…_ rest api:https://wiki.mozilla.org/bugzilla:restapi
。_电话簿:https://github.com/mozilla/mobile phonebook
查看代码:
。(可选)使用virtualenvwrapper创建virtualenv::
。安装pip::
安装bztools的依赖项::
\运行setup.py以便将脚本安装到bin目录::
现在您将在
虚拟环境的``/bin``目录中安装``bzattach`'。要使用脚本,您必须使用“work on bztools”激活这个
环境。
请注意:如果在
处理其他脚本期间对bugzilla/文件(代理、模型、实用程序)进行了任何更改,您需要按照上面的说明重新安装脚本,以便从bugzilla获取更改
usage
----
example::
password=get_credentials()
'resolved',
'product':'core,firefox',
'resolution':'fixed',
'include\fields':''u default,attachments',
}
打印错误
email nag script
---------
执行dryrun::
python脚本/email nag.py-d-q查询/tracking firefox 12-q查询/tracking firefox 13
您可以传入几个配置文件(查询/中的示例),这些文件应包含以下信息::
query name
priority
query url,params}(选择一种格式-请参阅查询/了解每种格式的示例)
脚本执行以下操作:
*从Mozilla LDAP电话簿收集员工和经理的当前列表
**您将需要使用LDAP信息对电话簿进行本地配置:
在scripts/configs/config.json中
{
“用户名”:“you@mozilla.com”、
“密码”:“xxxxxxxxxxxx”
}
*使用提供的每个查询轮询Bugzilla API,并为每个错误生成一个错误字典,找到被指派者,如果可能的话,指派者的经理-然后将错误添加到经理的错误桶中,以便在以后的电子邮件通知中
*通过经理字典,用分配给该经理的团队成员的错误构造一封电子邮件
*将消息输出到控制台,并等待使用输入发送/编辑/取消(保存对于手动通知)
*在最后,它提供了未通过电子邮件发送的所有错误的列表,并提供了该错误列表的bugzilla的url