Coder Social home page Coder Social logo

cz-jira-commit's Introduction

cz-jira-commit

A commitizen adapter for Jira issue management using Jira Rest API.

Usage

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 install cz-jira-commit

Reference it in your .cz.json of your project

{
  "path": "node_modules/cz-jira-commit/"
}

or use commitizen to init

commitizen init cz-jira-commit

See Jira setup section below on working with your Jira instance

Jira setup

This adapter interacts with Jira, hence needed to have access to your login credentials and url to the target Jira instance. An example ${HOME}/jira.config.json looks like:

{
  "username": "<your username>",
  "password": "<your password>",
  "protocol": "<http or https>",
  "host": "<your host name>",
  "port": "<your port number if required>"
}

Pre-push hook

A pre-push hook needs to call cz-jira-commit push. Recommended to use pre-push package and add to your package.json:

{
  "scripts": {
    "jira": "cz-jira-commit push"
  },
  "pre-push": [
    "jira"
  ],
}

Day to day work

Instead of git commit -m 'Your message', you type: git cz with this adapter and it prompts you for:

  • commit message
  • Jira Issue Key
  • Workflow command
  • Time Spent
  • Comment

It generates a commit like: [<jira issue key>] <commit message>

It will also attempt to action any workflow commands, log hours, and insert comments.

Credit

cz-jira-commit's People

Contributors

linusu avatar jimthedev avatar

Stargazers

Ilia Smirnov avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.