# travis-build-by-commit

> Fetch the travis build for given commit sha

Latest version **1.0.0** (published 2017-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install travis-build-by-commit
pnpm add travis-build-by-commit
yarn add travis-build-by-commit
bun add travis-build-by-commit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-02 |
| First published | 2017-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | juliangruber |

## Links

- npm: https://www.npmjs.com/package/travis-build-by-commit
- Repository: https://github.com/juliangruber/travis-build-by-commit
- Homepage: https://github.com/juliangruber/travis-build-by-commit#readme
- Issues: https://github.com/juliangruber/travis-build-by-commit/issues
- npm.io page: https://npm.io/package/travis-build-by-commit

## Dependencies (1)

- [travis-ci](https://npm.io/package/travis-ci.md) ^2.1.1

## Recent versions

- 1.0.0 (latest) — 2017-05-02

## README

# travis-build-by-sha

Fetch the travis build for given commit sha.

## Usage

```js
const fetch = require('travis-build-by-sha')

fetch({
  repo: ['juliangruber', 'travis-watch'],
  sha: 'a38ad2430f05fc7d6ab4f165fa5a19632132c095'
}).then(build => console.log({ build }))
```

```bash
$ node example.js
{ build: 
   { id: 216634685,
     repository_id: 12666653,
     commit_id: 62339610,
     number: '67',
     event_type: 'push',
     pull_request: false,
     pull_request_title: null,
     pull_request_number: null,
     config: 
      { language: 'node_js',
        node_js: [Object],
        sudo: false,
        '.result': 'configured',
        group: 'stable',
        dist: 'precise' },
     state: 'passed',
     started_at: '2017-03-30T06:05:17Z',
     finished_at: '2017-03-30T06:06:22Z',
     duration: 134,
     job_ids: [ 216634686, 216634687 ] } }

```

## Installation

```bash
$ npm install travis-build-by-commit
```

## API

### fetch({ repo, sha })

## License

MIT

---
_Source: https://npm.io/package/travis-build-by-commit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
