https://github.com/drewml/jira-deploy-release
Automatically transition JIRA issues found in Git commit messages to a specified state
https://github.com/drewml/jira-deploy-release
Last synced: about 1 year ago
JSON representation
Automatically transition JIRA issues found in Git commit messages to a specified state
- Host: GitHub
- URL: https://github.com/drewml/jira-deploy-release
- Owner: DrewML
- Created: 2016-09-04T04:50:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T19:24:28.000Z (almost 10 years ago)
- Last Synced: 2025-02-01T22:29:08.170Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JIRA Deploy Release
[](https://travis-ci.org/DrewML/jira-deploy-release)
Automatically transition JIRA issues found in Git commit messages to a specified state. Can be used to easily remove a manual step in your Continuous Delivery process.
## Install
```shell
npm install --save-dev jira-deploy-release
```
## Requirements
- A version of `node.js` >= `6.0.0`
- `Git` must be installed and available on `$PATH`
## Usage
### Authorization
At this time, this package only supports using [Basic Authentication](https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-basic-authentication) when using the JIRA API.
The `JIRA_AUTH` environment variable, or the `--auth` argument expect a string that is a JIRA username and password, in the format `user:pass`, that has been base64 encoded.
### With Environment Variables
```shell
export JIRA_HOST='jira.myhost.com'
export JIRA_PROJECT='MYPROJ'
export JIRA_AUTH='UdjcldaXR3aHky=='
export JIRA_TRANSITION='4'
$ jira-deploy-release
```
### With Command Line Arguments
```shell
$ jira-deploy-release --proj=MYPROJ --host=jira.myhost.com --auth='UdjcldaXR3aHky==' --transition=4
```
## TODO:
- Allow configuration and enabling/disabling of message posted on issue
- Unit test `git` module