Skip to content
This repository was archived by the owner on Jul 17, 2019. It is now read-only.

Ramshackle-Jamathon/commit-to-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated use https://isomorphic-git.org/ instead

commit-to-github

Uses the github API to make commits to github repos. lightweight and doesn't depend on Git.

Installation

$ npm install commit-to-github

Example

commitToGithub({
	user: "Ramshackle-Jamathon",
	repo: "commit-to-github",
	token: "<a-github-oauth-token>",
	files: [
		{path: "foo.txt", content: "nice words!"},
		{path: "sick-folder/bar.txt", content: "you're the best!"},
	],
	fullyQualifiedRef : "heads/master", //optional default = "heads/dev"
	forceUpdate: true, //optional default = false
	commitMessage: "great work!" //option default = "AutoCommit - " + new Date().getTime().toString();
}).then(function(res){
	// success!
}).catch(function(err){
	// oh no! something went wrong
})

Badges

About

make commits to github without git, perfect for AWS lambda

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •