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

https://github.com/webini/zenhub-pipeline

Automatically transfer issues in pipeline by commit message
https://github.com/webini/zenhub-pipeline

commit hooks move pipeline zenhub

Last synced: about 1 year ago
JSON representation

Automatically transfer issues in pipeline by commit message

Awesome Lists containing this project

README

          

ZenHub-Pipeline
===============

## Description

This small server allow you to change the pipeline of your issues using commit messages.

To move one issue

```
git commit -m "#1 => InProgress"
```

To move multiple issues
```
git commit -m "#1 #5 #42 => InProgress"
```

The original pipeline name is escaped with all char except alpha, the app will match the start of what you have written. If multiple pipelines are found the issue is not moved.

So `Review/QA` with be accessible by typing `review`, `rev` or `reviewqa`

## Configuration
We are using these env variables:

#### ZENHUB_TOKEN
Your ZenHub api token. Get one [here](https://github.com/ZenHubIO/API#for-zenhub-users)

#### GIT_TOKEN
The git token, it will be used to read issue's name from your private repositories.
[Create a new one here](https://github.com/settings/tokens/new?scopes=repo&description=ZenHubPipeline).

#### GIT_HOOK_SECRET (optional)
The hook secret specified at the creation of the hook.

#### HOST
Server host

#### PORT
Server port

## Installation
Run with docker or manually
```
docker run -p 8080:8080 -e "ZENHUB_TOKEN=" -e "GIT_TOKEN=" -e "GIT_HOOK_SECRET=" nicocanicolas/zenhub-pipeline
```
Once the server is started, go to your repository(ies) and add a new push hook ( default path: "/" ) to your brand new server address.

## Contributions
As this project was made in hurry, contributions are welcome :p