一个git工作流插件。

bush的Python项目详细描述


浓密

git工作流插件的灵感来自 git-pivotal但打算 除了关键的跟踪器之外,还支持多个项目管理平台。

安装

bushy是一个Python包,可以使用 easy_installpip命令。实现最无缝的集成 安装该包,以便生成的控制台脚本在$path中可用。

建议在virtualenv中安装python包。如果你 activate在开发项目virtualenv时,这将放置 $path中的命令会自动执行。或者,您可以创建 virtualenv for bushy并将脚本添加到shell配置中。如果你使用 bash您可以执行以下操作以确保可以访问这些命令:

$ virtualenv-2.6 --no-site-packages bushy
$ bushy/bin/pip install bushy
$ echo "export PATH=$PATH:/path/to/bushy/bin" >> ~/.bash_profile

这将允许您运行以下命令:

$ git feature
$ git finish
$ git bug

以及:

$ /path/to/bushy/bin/git-feature
$ /path/to/bushy/bin/git-finish
$ /path/to/bushy/bin/git-bug

用法

关键配置

bushy需要全局和项目本地配置才能完全集成。

所需的本地配置(从项目目录中):

$ git config -f .git/config bushy.platform pivotal # use Pivotal Tracker for this project
$ git config -f .git/config bushy-pivotal.project-id PROJECT_ID # from the project url on the Pivotal Tracker site

必需的全局配置:

$ git config --global bushy-pivotal.api-token TOKEN # taken from the profile section on the Pivotal Tracker site
$ git config --global bushy-pivotal.full-name "YOUR NAME"

可选配置:

$ git config --global bushy-pivotal.integration-branch # the name of the integration branch if different from master
$ git config --global bushy-pivotal.only-mine # only select from new features that are assigned to you

使用新功能

您可以使用git-feature命令选择要处理的新功能:

junkafarian$ git feature
Retrieving latest features from Pivotal Tracker
Story: hook up with pivotal
URL: http://www.pivotaltracker.com/story/show/8236507
Updating feature status in Pivotal Tracker...
Enter branch name (will be prepended by 8236507) [feature]:
Switching to branch 8236507-feature
junkafarian$

如果要处理特定的报道,可以指定报道ID:

junkafarian$ git feature -s 12345
Retrieving story 12345 from Pivotal Tracker
Story: hook up with pivotal
URL: http://www.pivotaltracker.com/story/show/12345
Updating feature status in Pivotal Tracker...
Enter branch name (will be prepended by 12345) [feature]:
Switching to branch 12345-feature
junkafarian$

这将使你转到一个新的部门来处理这个问题 挑选出来的。

完成开发工作/检查测试通过后/ 提交更改后,您可以将任务声明为已完成:

junkafarian$ git finish
Marking Story 8236507 as finished...
Merging 8236507-feature into master
Removing 8236507-feature branch
Merged code into trunk. Please push upstream and notify the release manager if necessary
junkafarian$

然后您可以将这些更改推到上游。

路线图

  • 单元测试-已完成
  • 允许通过命令行上的id选择功能/错误-已完成
  • 对GitHub问题的支持

词源学

Bushy鼓励完全基于代码分支的工作流。 灌木丛有很多树枝……

更改

0.3(未发布)

0.2.5(2011-07-08)

  • 修复了对关键py到>;=0.1.3的依赖性
  • 更改了Pivotal的导入路径

0.2.4(2011-07-08)

  • 修复了对关键py到>;=0.1.2的依赖性

0.2.3(2011-07-07)

  • 上载到PYPI时由于错误打包而导致的错误修复版本。对不起任何遇到问题的人!

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpring重定向请求处理程序   SwingJava:拆分字符串并将其放入文本区域的   Java:标记“”上出现语法错误,此标记后面应为表达式   web服务Java RestService从日志文件写入和读取数据   java如何将ArrayList<String>转换为char数组,然后向后打印每个单词?   java SimpleDataFormat解析返回年终日期   加密Java aes解密bytebuffer,包括填充为空字节   java有没有办法从特定的if语句调用变量?   java从更新返回到渲染   spring GRPC Java登录测试   java为什么下面的代码不工作(StringBuffer.toString!=null)   java是一种可行的模式吗?   使用Spring集成测试的JavaOSGi片段   java jCommander为未知和未使用的值引发异常?   在imageView的editText中输入的java图像URL