在jira问题的本地副本中搜索工具
jirafts的Python项目详细描述
筏
jira全文搜索是一个工具,允许您将问题保存到本地驱动器 用于在索引文本中使用强大的Whoosh搜索引擎或通过正则表达式进行grep搜索。
当前状态
工作正在进行中,但已可以使用
安装
# in virtual env
$ pip install jirafts
用法
我们将使用cassandra的python驱动程序jira作为示例https://datastax-oss.atlassian.net/
首先,同步项目中的问题
PYTHON
$ jirafts sync --url https://datastax-oss.atlassian.net/ -p PYTHON
数据将存储到默认位置
~/.jirafts/default_index/
现在您可以搜索问题
$ jirafts search segmentation $ jirafts search "doesn't work" $ jirafts search "status:'In Progress' asyncio"
带有regexps的grep
$ jirafts grep "CREATE KEYSPACE.*?SimpleStrategy" $ jirafts grep -i "simplestra"
或者,如果要处理整个文本,则将其转储
$ jirafts dump | wc -l $ jirafts dump -s | sort
与私人jira一起使用
通过--auth
参数支持身份验证
$ jirafts sync --url https://private-project.atlassian.net/ --auth email@example.com:token-or-password
此外,您还可以使用相同格式的凭据将文件的路径传递给--auth
。
$ jirafts sync --url https://private-project.atlassian.net/ --auth ~/.jira-auth.txt
集成帮助中提供的其他选项的说明:
$ jirafts --help $ jirafts sync --help $ jirafts search --help $ jirafts grep --help $ jirafts dump --help