0.2.3 • Published 9 years ago

commit-to-github v0.2.3

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

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

npm.io npm.io

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago