一个git工作流插件。
bush的Python项目详细描述
浓密
git工作流插件的灵感来自 git-pivotal但打算 除了关键的跟踪器之外,还支持多个项目管理平台。
安装
bushy是一个Python包,可以使用 easy_install或pip命令。实现最无缝的集成 安装该包,以便生成的控制台脚本在$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时由于错误打包而导致的错误修复版本。对不起任何遇到问题的人!