https://github.com/dkunin/stash-prs-list
Simple proxy, to get the API, and combine pull-requests with mergin info, and narrrowing down to a single user.
https://github.com/dkunin/stash-prs-list
proxy pull-requests stash
Last synced: 11 months ago
JSON representation
Simple proxy, to get the API, and combine pull-requests with mergin info, and narrrowing down to a single user.
- Host: GitHub
- URL: https://github.com/dkunin/stash-prs-list
- Owner: DKunin
- Created: 2017-01-24T07:20:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T06:06:32.000Z (almost 9 years ago)
- Last Synced: 2025-03-14T19:50:14.519Z (over 1 year ago)
- Topics: proxy, pull-requests, stash
- Language: JavaScript
- Size: 70.3 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stash Pull Requests lists
> Simple proxy, to get the API, and combine pull-requests with mergin info, and narrrowing down to a single user.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [License](#license)
## Install
```console
git clone git@github.com:DKunin/stash-prs-list.git
cd stash-prs-list
npm prepeare
```
npm prepeare will create .projects file for you, there you should put links PR projects you are interested in.
Before usage JIRA_PASS, STASH_HOST and STASH_PROJECTS env variables should be set in your .bashrc file, or any other place, you use to declare variables. JIRA_PASS is base64 encoded your 'username:password'.
STASH_PROJECTS - should be a list of project paths.
```bash
export JIRA_PASS='ZnJlZDpmcmVk'
export STASH_HOST='www.stash.com'
export STASH_PROJECTS='JS/repos/utils JS/repos/middleware'
```
```console
npm start
```
Or with Docker
```console
docker pull dkunin/stash-prs-list
docker run -d -p 4848:4848 -e "JIRA_PASS=$JIRA_PASS" -e "STASH_HOST=$STASH_HOST" -e "STASH_PROJECTS=$STASH_PROJECTS" dkunin/stash-prs-list
```
Or if you want to modify/build your own image
```console
npm run docker-image-build
npm run docker-image-start
```
which will run:
```console
docker build ./ -t $(whoami)/$(basename $PWD)
docker run -d -p 4848:4848 -e "JIRA_PASS=$JIRA_PASS" -e "STASH_HOST=$STASH_HOST" -e "STASH_PROJECTS=$STASH_PROJECTS" $(whoami)/$(basename $PWD)
```
## Usage
Go to address:
```
http://localhost:4848/api/prs?username=dkunin
```
## License
MIT © Dmitri Kunin