npm.io
1.0.0 • Published 10 years ago

latest-push

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0
Stars
5

latest-push Build Status

Get the latest push of a GitHub user.

Install

$ npm install --save latest-push

Usage

const latestPush = require('latest-push');

latestPush('SamVerschueren', {token: 'foo'}).then(push => {
	//=> the latest push object
});

API

latestPush(user, [options])

Returns a promise for the latest push object.

user

Type: string

User to retrieve the latest commit for.

options
token

Type: string

GitHub access token.

Can be set globally with the GITHUB_TOKEN environment variable.

pages

Type: Number
Default: 5

Maximum number of pages to iterate over to retrieve the latest push.

exclude

Type: Array

Push IDs that should be skipped as result.

License

MIT Sam Verschueren

Keywords