python提交客户端工具

commitizen的Python项目详细描述


Python 3 command line utility to standardize commit messages and bump version
TravisConventional CommitsPyPI Package latest releaseSupported versionsCodecovExample running commitizen

文档https://Woile.github.io/commitizen/


About

Commitizen是为团队设计的工具。

其主要目的是定义一种标准的提交规则的方式 和通信(使用commitizen提供的cli)。

它背后的原因是更容易阅读,并强制写作 描述性提交。

除此之外,在你的承诺上有一个交集,使得 分析它们并将其用于其他用途,如自动生成 版本或更改日志。

Installation

pip install -U commitizen
poetry add commitizen --dev

全局安装

sudo pip3 install -U commitizen

Features

  • 命令行实用程序,用您的规则创建提交。默认值:conventional commits
  • 显示有关提交规则的信息(命令:schema、example、info)
  • 基于提交自动使用语义验证的bump版本。Read More
  • 使用“keep a changelog”(计划功能)生成变更日志

Commit rules

此客户端工具提示用户有关提交的信息。

基于conventional commits

这是git消息历史记录的一个示例:

fix: minor typos in code
feat: new command update
docs: improved commitizens tab in readme
feat(cz): jira smart commits
refactor(cli): renamed all to ls command
feat: info command for angular
docs(README): added badges
docs(README): added about, installation, creating, etc
feat(config): new loads from ~/.cz and working project .cz .cz.cfg and setup.cfg

然后使用cz bump可以更改项目的版本

featMINORfixPATCH

Commitizens

默认情况下,这些是可用的提交样式:

可以使用以下工具检查已安装的系统:

cz ls

Commiting

在终端中运行

cz commit

或快捷方式

cz c

Usage

$ cz --help
usage: cz [-h] [--debug] [-n NAME] [--version]
        {ls,commit,c,example,info,schema,bump} ...

Commitizen is a cli tool to generate conventional commits.
For more information about the topic go to https://conventionalcommits.org/

optional arguments:
-h, --help            show this help message and exit
--debug               use debug mode
-n NAME, --name NAME  use the given commitizen
--version             get the version of the installed commitizen

commands:
{ls,commit,c,example,info,schema,bump}
    ls                  show available commitizens
    commit (c)          create new commit
    example             show commit example
    info                show information about the cz
    schema              show commit schema
    bump                bump semantic version based on the git log

Contributing

请随意创建公关。

  1. 克隆回购协议。
  2. 添加您的修改
  3. 创建一个virtualenv
  4. 运行./scripts/test

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

推荐PyPI第三方库


热门话题
带有字符串的java JNA调用与带有字节[]的java JNA调用的行为不同   java基于键列表获取子映射   重启后永久增加java堆大小?   JavaHTTPS服务器:相互SSL身份验证   java为什么接受接口的方法会拒绝该接口的实现?   片段中的java视图无法应用于()   ms access Java SQL更新命令不工作   java将web服务自动打包和部署到Oracle Application Server 10g   java有没有办法在安卓 studio中为安卓时钟设置多个警报?   位于FTP服务器上的文件上的Java校验和md5   在Java中创建类时遇到问题。有些方法不太确定   java错误:在类chrome\u驱动程序中找不到主方法   通用海图(Javascript\Java)