自动将票证信息添加到git提交中。
giticket的Python项目详细描述
===
giticket
==
图片::https://img.shields.io/pypi/v/giticket.svg
:目标:https://pypi.python.org/pypi/giticket
…图片::https://travis-ci.com/milin/giticket.svg?branch=master
:目标:https://travis ci.org/milin/giticket
…图片::https://readthedocs.org/projects/giticket/badge/?version=latest
:目标:https://giticket.readthedocs.io/en/latest/?badge=latest
:alt:documentation status
*免费软件:mit license
*documentation:https://giticket.readthedocs.io.
功能
--
要工作,必须满足以下两个条件:
-如果传入regex,则指定的票证格式regex必须匹配。
-分支名称格式必须为<;票证号>;\lt;分支名称的其余部分>;
,例如,如果您将分支命名为“jira-1234\u awesome\feature”,并提交“修复某些错误”,提交将更新为“jira-1234修复某些错误”`.
pass`--regex=``或update`` args:[--regex=<;custom regex>;]``如果您有自定义票证regex,则在.yaml文件中。
默认情况下,它是``[a-z]+-\d+``.
pass`--format=``或update`` args:[--format=<;custom template string>;]``在.yaml文件中,如果有自定义的消息替换,
默认情况下,它是``{ticket}{commit_msg}```,其中``ticket``替换为找到的票证号,而``commit_msg`替换为原始的commit消息。
通过在`.pre-commit config.yaml``文件中添加以下钩子,可以将其与预提交一起使用。
::
repos:
-repo:https://github.com/milin/giticket
rev:'e0bf7ae'
hooks:
-id:giticket
args:['--regex=proj-[0-9],--格式='“{ticket}{commit msg}”']\optional
安装——钩子类型提交消息
…_预提交:https://pre-commcommit.com/
===
=
=
=
=
<0.1.5(2019-04-23)
---------
<是的
giticket
==
图片::https://img.shields.io/pypi/v/giticket.svg
:目标:https://pypi.python.org/pypi/giticket
…图片::https://travis-ci.com/milin/giticket.svg?branch=master
:目标:https://travis ci.org/milin/giticket
…图片::https://readthedocs.org/projects/giticket/badge/?version=latest
:目标:https://giticket.readthedocs.io/en/latest/?badge=latest
:alt:documentation status
*免费软件:mit license
*documentation:https://giticket.readthedocs.io.
功能
--
要工作,必须满足以下两个条件:
-如果传入regex,则指定的票证格式regex必须匹配。
-分支名称格式必须为<;票证号>;\lt;分支名称的其余部分>;
,例如,如果您将分支命名为“jira-1234\u awesome\feature”,并提交“修复某些错误”,提交将更新为“jira-1234修复某些错误”`.
pass`--regex=``或update`` args:[--regex=<;custom regex>;]``如果您有自定义票证regex,则在.yaml文件中。
默认情况下,它是``[a-z]+-\d+``.
pass`--format=``或update`` args:[--format=<;custom template string>;]``在.yaml文件中,如果有自定义的消息替换,
默认情况下,它是``{ticket}{commit_msg}```,其中``ticket``替换为找到的票证号,而``commit_msg`替换为原始的commit消息。
通过在`.pre-commit config.yaml``文件中添加以下钩子,可以将其与预提交一起使用。
::
repos:
-repo:https://github.com/milin/giticket
rev:'e0bf7ae'
hooks:
-id:giticket
args:['--regex=proj-[0-9],--格式='“{ticket}{commit msg}”']\optional
安装——钩子类型提交消息
…_预提交:https://pre-commcommit.com/
===
=
=
=
=
<0.1.5(2019-04-23)
---------
<是的