yarn add repo-first-commit
const repo = require('repo-first-commit')
repo({
owner: 'egoist',
repo: 'vbuild',
sha: '5.0'
}).then(commit => {
console.log(commit.commit.message)
//=> "init"
})
Type: string
Required: true
GitHub username
Type: string
Required: true
GitHub repo name
Type: string
SHA or branch to start listing commits from.
Type: string
GitHub API access token.
- 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
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