repo-first-commit
Get the first commit of any GitHub repo.
Last updated 3 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install repo-first-commit 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |