Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mgerhardy/git-tools

Collection of git util functions. E.g. to create jira tickets for a commit.
https://github.com/mgerhardy/git-tools

extension git jira jira-rest-api

Last synced: 5 days ago
JSON representation

Collection of git util functions. E.g. to create jira tickets for a commit.

Awesome Lists containing this project

README

        

# Purpose

If you have to create a jira tickets for your commits, you can use this tool
to automate the process.

Just replace `git commit` with `git jira`.

# Installation

Copy **git-jira** into your `$PATH`.

Install `jq` (`apt-get install jq`).

# How it works

It will take the brief description of your git commit message as ticket
title and will put the body of the git commit message into the description.

The ticket key will get put in front of your git commit message.

For example: `git jira -m "Bar"` will create a ticket in the project `FOO` (see
setup description) and will put the newly created ticket key (e.g. `FOO-123`) in
front of the commit message: `FOO-123: Bar` - without specifying the body the
description in the newly created ticket will stay empty.

> Parameters are just forwarded to `git commit` - but the ticket is only created when
using `-m "message"`.

# Setup

Make sure to configure your jira related data before.

## set the jira project name

```sh
git config jira.project
```

## set the jira base url

```sh
git config jira.url https://jira
```

## set the jira login data

```sh
git config jira.password
git config jira.username
```