https://github.com/knutkirkhorn/gh-latest-commit
:octocat: Get a users latest GitHub commit
https://github.com/knutkirkhorn/gh-latest-commit
commit gh github latest
Last synced: 9 months ago
JSON representation
:octocat: Get a users latest GitHub commit
- Host: GitHub
- URL: https://github.com/knutkirkhorn/gh-latest-commit
- Owner: knutkirkhorn
- License: mit
- Created: 2019-06-29T19:52:49.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T22:43:23.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T16:17:54.948Z (9 months ago)
- Topics: commit, gh, github, latest
- Language: JavaScript
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-latest-commit
> :octocat: Get a users latest GitHub commit
## Installation
```
npm install gh-latest-commit
```
## Usage
```js
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.