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

tcrammond/codeship-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeship-node

Codeship API for node - https://codeship.com/documentation/integrations/api/

Usage

You'll need to set up with your API key first (find it here):

var Codeship = require('codeship-node');
var codeship = new Codeship({apiKey: 'abc123'});

Each method is nested under it's resource name and requires a callback. Example of retrieving all projects:

codeship.projects.list(function(err, projects) {
  if (err) {
    // do stuff
  }
  
  console.log('Projects!', projects);
}):

Available methods

  • builds
  • restart(build_id, cb)
  • projects
  • get(project_id, cb)
  • list(cb)