Node client for the Drone API
const drone = require('drone-node')
const client = new drone.Client({
url: 'https://drone.example.com',
token: 'SoMeToKeN'
})
client.getRepos().then((res) => {
console.log(res)
}).catch((reason) => {
console.error(reason)
})
Many functions are available, please read the source and jsdoc comments at lib/index.js.
Fork -> Patch -> Lint -> Test -> Push -> Pull Request
These tests are dependent on a running drone server. You can run them with the following command:
DRONE_SERVER=your_server DRONE_TOKEN=your_token yarn run integration
These will be run automatically with your PR. Ensure they pass before creating a PR.
yarn run test
Apache-2.0
Copyright (c) 2020 Drone.io Developers