gh-latest-commit
v2.0.0
Published
Get a users latest GitHub commit
Downloads
8
Readme
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', '[email protected]'));
// => { 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.