功能分支命名器/问题跟踪器管理器
项目描述
使用 git 命名功能分支的助手
这个应用程序从不同的问题跟踪器中获取问题标题,并且结帐功能具有好名字的分支
pignacio/issue2branch ‹master› % issue2branch 4 Getting issue title for issue: '4' Requesting 'https://api.github.com/repos/pignacio/issue2branch/issues/4' Got title: 'Issue 4 Write README' Branching 'issue-4-write-readme' pignacio/issue2branch ‹issue-4-write-readme› %
安装
pip install issue2branch
用法
issue2branch --list # -l/--list: show the current open issues
issue2branch -l --limit 50 # --limit the amount of issues listed
issue2branch -s <issue> # -s/--show: print the issue description
issue2branch <issue> # Fetch the <issue> title and checkout a branch
issue2branch <issue> --take # Additionally, set yourself as the assignee, when
# possible
issue2branch <issue> --noop # -n/--noop runs dry (without making changes)
其他 redmine 用法
Redmine 支持附加参数:
issue2branch --list --mine # -m/--mine show only tickes assigned to you issue2branch --list -v <version> # -v/--version filter by target version issue2branch --list --all # List all (including closed) issues issue2branch --project myproject # -p/--project filter issues by project issue2branch --all-projects # Show all projects
支持的问题跟踪器
开箱即用地支持Github和Bitbucket公共问题跟踪器。对于私有的,必须添加身份验证令牌。
配置
配置文件默认位置是<git repo root>/.issue2branch.config,可以通过ISSUE2BRANCH_CONFIG 环境变量覆盖。
该文件遵循ConfigParser格式并具有以下部分:
[main]
tracker = issue tracker type. one of redmine, github, bitbucket.
Github and Bitbucket are detected automatically based on the origin
remote hostname
[auth]
user = HTTP authentication user
password = HTTP authentication password, if missing when user is present, a
prompt will ask for it each time issue2branch is run
[list] # --list options
limit = number of issues to retrieve when listing. Defaults to 40.
Is overrided at runtime via the --limit argument
[redmine] # Redmine specific config
url = url where the issue tracker is located
inprogress_id = Internal redmine ID for the "In progress" status. Needed for
--take
assignee_id = Internal redmine ID for the assignee. Needed for --take
project = Only show issues from this project
[github] # Github specific config
repo_user = the owner of the issue tracker. Useful for overriding real owner
when working on a fork. Defaults to origin's owner
repo_name = name of the remote repo. Defaults to origins's name
[bitbucket] # Bitbucket specific config
repo_user = the owner of the issue tracker. Useful for overriding real owner
when working on a fork. Defaults to origin's owner
repo_name = name of the remote repo. Defaults to origins's name
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
issue2branch-0.0.8.tar.gz
(21.5 kB
查看哈希)
内置分布
issue2branch-0.0.8-py2-none-any.whl
(34.4 kB
查看哈希)
关
issue2branch -0.0.8.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | df602a80754ca62064199b900cbfac064abf02324119048dfe91fd0272e69d40 |
|
| MD5 | 56db68a45aa32490e4e022fbdffbe336 |
|
| 布莱克2-256 | a7b2e037719414092565f5d867d5dddd7000cf50e656e5c603cfda0feafb3c71 |
关
issue2branch -0.0.8-py2-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | aaeb384b015eb416d65f373cad292c1d0e8bf6082d4a4f07d68b0fd76edc3281 |
|
| MD5 | 9dd30ddc31b870e3f1d339c5b076dd9a |
|
| 布莱克2-256 | 96315975792aa0b0c8ca2b3f962cc0b024c9647254d2a830154c2da40757c7ad |