shelljs-changelog
Advanced tools
Comparing version 0.2.4 to 0.2.5
10
index.js
@@ -28,3 +28,11 @@ #!/usr/bin/env node | ||
} | ||
exec('curl "github-changelog-api.herokuapp.com/'+repoInfo[1]+'/'+repoInfo[2]+'"').to('CHANGELOG.md'); | ||
var url = 'github-changelog-api.herokuapp.com/' + repoInfo[1] + '/' + repoInfo[2]; | ||
exec('curl -X POST -s "' + url + '"'); | ||
var newLog; | ||
do { | ||
exec('sleep 1'); | ||
newLog = exec('curl "' + url + '"'); | ||
} while (newLog.match(/^Working, try again.*/)); | ||
// Now that the contents are valid, we can write this out to disk | ||
newLog.to('CHANGELOG.md'); | ||
@@ -31,0 +39,0 @@ var changelog_was_updated = false; |
{ | ||
"name": "shelljs-changelog", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A simple script to create & update a changelog", | ||
@@ -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
4446
48