2.0.0 • Published 1 year ago

gh-latest-commit v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

gh-latest-commit

:octocat: Get a users latest GitHub commit

Installation

npm install gh-latest-commit

Usage

import ghLatestCommit from 'gh-latest-commit';

console.log(await ghLatestCommit('knutkirkhorn'));
// => { message: ..., url: ..., time: ... }

// Check if the commit is authored with the given email
console.log(await ghLatestCommit('knutkirkhorn', 'knutkirk@hotmail.com'));
// => { message: ..., url: ..., time: ... }

API

ghLatestCommit(username, email)

Returns the usernames latest GitHub commit. The author email of the commit needs to match if the email is set.

2.0.0

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

5 years ago

1.0.0

5 years ago