Skip to content

egoist/repo-first-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 15, 2017
f61a302 · Feb 15, 2017

History

3 Commits
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017
Feb 15, 2017

Repository files navigation

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

About

Get the first commit of any GitHub repo.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published