Simple proxy, to get the API, and combine pull-requests with mergin info, and narrrowing down to a single user.
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.
export JIRA_PASS='ZnJlZDpmcmVk'
export STASH_HOST='www.stash.com'
export STASH_PROJECTS='JS/repos/utils JS/repos/middleware'
npm start
Or with Docker
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
npm run docker-image-build
npm run docker-image-start
which will run:
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)
Go to address:
http://localhost:4848/api/prs?username=dkunin
MIT © Dmitri Kunin