Socket
Book a DemoInstallSign in
Socket

commit-to-github

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-to-github

make commits to github without git, perfect for AWS lambda

0.2.3
latest
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

git

FAQs

Package last updated on 01 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.