Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stash-rest-api

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stash-rest-api

Provides access to *some* of Stash's APIs.

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Rest client for Atlassian Stash

Provides access to some of Stash's APIs.

Initialising Client

var auth = {
    "user": "username",
    "password": "password"
};

var Client = require('stash-rest-api').Client;

var stash = new Client(
    'http://localhost:7990/rest/api/1.0/',
    auth.user,
    auth.password
);

APIS

projects

Get all projects.

stash.projects.get(); // Promise

repos

Get all repos for a project.

stash.repos.get(projectKey); // Promise

Get all repos for all projects.

stash.repos.getCombined(); // Promise

pull requests

Get all pull requests for a repo.

stash.prs.get(projectKey, repoSlug); // Promise

Get all pull requests for a project.

stash.prs.getCombined(projectKey); // Promise

Get all pull requests on all projects.

stash.prs.getCombined(); // Promise

hooks

Get all hooks for a repo.

stash.hooks.get(projectKey, repoSlug); // Promise

Get all pre-recieve hooks.

stash.hooks.getPreReceive(projectKey, repoSlug); // Promise

Get all post-recieve hooks.

stash.hooks.getPostReceive(projectKey, repoSlug); // Promise

Get details for a single hook.

stash.hooks.getHook(projectKey, repoSlug, hookKey); // Promise

Keywords

FAQs

Package last updated on 08 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc