Code Monkey home page Code Monkey logo

bitbucket-ship.io-status's Introduction

App Logo bitbucket-codeship-status

Build Status Dependency Status devDependency Status

Small app that will automatically update newly created pull requests in Bitbucket with the branch's Ship.io build status.

Running on Heroku

First just deploy a free instance of the app on heroku using the button then just follow the steps below.

Deploy

  1. Create an API Key in Bitbucket for your team and use your team name as the username and the API Key as your password in the next step.
  2. Set BITBUCKET_USERNAME and BITBUCKET_PASSWORD ENV variables to match with the username and password above.
  3. Add a Pull Request POST hook in Bitbucket for Create / Edit / Merge / Decline that points to your instance of this app. The URL should look something like this:
    • https://<BITBUCKET_USERNAME>:<BITBUCKET_PASSWORD>@<YOUR_APP_NAME_ON_HEROKU>.herokuapp.com/pull-request/<SHIP.IO_UUID>/<SHIP.IO_JOB_ID>
    • Which would look something like this: https://username:[email protected]/pull-request/TaEsS-btAiRoljOn/5213
  4. Now whenever a pull request is created, it should (almost instantly) get updated to have the ship.io badge in the description.

Running Locally

Server runs on port 8000 by default, but will use the port set on the environment variable PORT if set.

  1. Run npm install for the initial setup.
  2. Set BITBUCKET_USERNAME and BITBUCKET_PASSWORD ENV variables.
  3. Run npm start to start the server.

Tests

To execute all the tests, just run:

npm test

To run all tests and watch for changes to re-run tests:

npm run watch

bitbucket-ship.io-status's People

Contributors

chesleybrown avatar skylinezum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.