Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

egoist/repo-first-commit

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.