sync-to-github
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20480
481