1.0.15 • Published 8 months ago

@hyperia/hyperia-commitizer v1.0.15

Weekly downloads
3
License
MIT
Repository
github
Last release
8 months ago

hyperia-commitizer

A commitizen adapter for Jira smart commits.

Screenshot

Global Installation

For a quick global installation of the plugin, simply run the install.sh script present in this repo:

chmod +x install.sh  
  
./install.sh  

Add this adapter

Install this adapter

npm i @hyperia/hyperia-commitizer  

Create .cz.json

{  
 "path": "node_modules/@hyperia/hyperia-commitizer"
}  

Run

  • with pre-commit git cz
  • without pre-commit git cz -n

Program process

after run:
1. run auto command: git add -A
2. questions:
- <list (type)>: Type of operation: ['task', 'bug', 'fix', 'update', 'merging', 'test', 'refactoring', 'experiment']
- <list (from)>: Where did you come from?: ['develop', 'beta', 'rc-branch', 'master', 'other']
- if (from == other): <input (fromManual)>: Name of the parent branch:
- <input (workflow)>: Job description:
- <list (pushing)>: Do you want to PUSH automatically? ['yes','no']
3. create commit from question and actual branch name in format:

```  
<shortBranchName after '/' before second '-' >: <workflow> [<type> from <fromManual ?? from> ] (<actualBranchName>)  
```  
  1. if (pushing == yes): run auto command: git push origin HEAD

shortBranchName example

  • if actualBranchName contains task/
    • actualBranchName: task/JIRA-5555 => shortBranchName: JIRA-5555
    • actualBranchName: task/JIRA-5555-1 => shortBranchName: JIRA-5555
  • if actualBranchName do not contains task/
    • actualBranchName: rc-branch => shortBranchName: rc-branch
    • actualBranchName: example-branch-name => shortBranchName: example-branch-name

    Example

  • actual branch: task/JIRA-5555-1
  • finnal commit: JIRA-5555: Job description... [task from dev] (task/JIRA-5555-1)
1.0.9

10 months ago

1.0.10

10 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

10 months ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago