Skip to content

drone/drone-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

25c1138 · Jul 11, 2023

History

56 Commits
Apr 1, 2022
Apr 19, 2022
Apr 19, 2022
Jan 17, 2023
Mar 17, 2020
Mar 17, 2020
Mar 17, 2020
Nov 3, 2015
Apr 1, 2022
Apr 1, 2022
Jul 11, 2023

Repository files navigation

drone-node

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com npm version

Node client for the Drone API

Example

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.

Contributing

Fork -> Patch -> Lint -> Test -> Push -> Pull Request

Integration Tests

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

Unit Tests

These will be run automatically with your PR. Ensure they pass before creating a PR.

yarn run test

Authors

License

Apache-2.0

Copyright

Copyright (c) 2020 Drone.io Developers

About

Node client for the Drone API

Resources

License

Stars

Watchers

Forks

Packages

No packages published