1.0.0 • Published 7 years ago

repo-first-commit v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

repo-first-commit

NPM version NPM downloads Build Status donate

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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