Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mgerhardy/git-tools
- Owner: mgerhardy
- License: mit
- Created: 2022-02-08T10:41:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T10:49:38.000Z (10 months ago)
- Last Synced: 2024-10-31T08:12:01.657Z (about 2 months ago)
- Topics: extension, git, jira, jira-rest-api
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```