Skip to content

Latest commit

ย 

History

History
133 lines (111 loc) ยท 2.28 KB

File metadata and controls

133 lines (111 loc) ยท 2.28 KB

CZ

create commit in human way.

only apply for OWLPAY currently

Install

# npm
npm install -g unickowl/cz

# yarn
yarn add global unickowl/cz

#pnpm
pnpm install -g unickowl/cz

Uninstall

# npm
npm install -g owlting_cz

# yarn
yarn add global owlting_cz

#pnpm
pnpm install -g owlting_cz

Usage

cz

Step 1

pick a commit type

image

Step 2

commit message

image

Step 3

if need to tag Jira issue for title prefix

image

Step 4 (if !!Step3)

input Jira issue ID

image

Types

{
  name: 'chore',
  emoji: '๐Ÿงน',
  description: 'Build process or auxiliary tool changes',
  value: 'chore'
},
{
  name: 'ci',
  emoji: '๐Ÿ‘ท',
  description: 'CI related changes',
  value: 'ci'
},
{
  name: 'docs',
  emoji: '๐Ÿ“',
  description: 'Documentation only changes',
  value: 'docs'
},
{
  name: 'feat',
  emoji: '๐Ÿ’ก',
  description: 'A new feature',
  value: 'feat'
},
{
  name: 'fix',
  emoji: '๐Ÿ›',
  description: 'A bug fix',
  value: 'fix'
},
{
  name: 'hotfix',
  emoji: '๐Ÿšจ',
  description: 'Emergency fix',
  value: 'hotfix'
},
{
  name: 'perf',
  emoji: 'โšก',
  description: 'A code change that improves performance',
  value: 'perf'
},
{
  name: 'refactor',
  emoji: '๐Ÿ”จ',
  description: 'A code change that neither fixes a bug or adds a feature',
  value: 'refactor'
},
{
  name: 'release',
  emoji: '๐ŸŽ‰',
  description: 'Create a release commit',
  value: 'release'
},
{
  name: 'style',
  emoji: '๐ŸŽจ',
  description: 'Markup, white-space, formatting, missing semi-colons...',
  value: 'style'
},
{
  name: 'test',
  emoji: '๐ŸŽฎ',
  description: 'Adding missing tests',
  value: 'test'
}

Todo

  • adapt for other projects prefix