repo-first-commit
Install
yarn add repo-first-commit
Usage
const repo = require('repo-first-commit')
repo({
owner: 'egoist',
repo: 'vbuild',
sha: '5.0'
}).then(commit => {
console.log(commit.commit.message)
//=> "init"
})
API
repo(options)
options
owner
Type: string
Required: true
GitHub username
repo
Type: string
Required: true
GitHub repo name
sha
Type: string
SHA or branch to start listing commits from.
token
Type: string
GitHub API access token.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
repo-first-commit © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin