Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

ericanderson/node-astash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AStash for Node

Provides an (incomplete) node library for communicating with Atlassian Stash.

Quick Resources

Branch Build Status Coffee Docs
master Master Build Status Coffee Docs

Overview

This library provides little over the direct Stash REST API, however the little it provides makes your life so much easier.

The two primary features are:

  • Q promsies for code legibility
  • Automatic handling of paged requests for iterator/generator style access

Example

# Look at all open pull requests for MYPROJ/myrepo
promise = stash.eachPullRequest "MYPROJ", "myrepo", (pr) ->
  pr.canMerge().done () ->
    pr.attemptMerge()

promise.done(-> console.log('Finished processing requests'))

Documentation

About

REST Client for Atlassian Stash

Resources

License

Stars

Watchers

Forks

Packages

No packages published