Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sync-to-github

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-to-github - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

lib/sync.js

@@ -78,6 +78,11 @@ var GitHubApi = require('github');

}).then(function(newRootTree) {
return commitChanges(gitData, options, commit, newRootTree);
}).then(function() {
if (options.createPullRequest) {
return createPullRequest(github, options);
if (newRootTree.sha === commit.tree.sha) {
debug(options, 'No changes to tree, not committing anything');
} else {
return commitChanges(gitData, options, commit, newRootTree)
.then(function() {
if (options.createPullRequest) {
return createPullRequest(github, options);
}
});
}

@@ -84,0 +89,0 @@ });

{
"name": "sync-to-github",
"version": "0.1.1",
"version": "0.1.2",
"description": "Easily sync a directory of files to a GitHub repo using the GitHub API",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc