Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days 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 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T22:43:23.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T18:46:56.484Z (about 2 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', '[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.