parent
1d294a831c
commit
90b1e0be8d
|
@ -1074,7 +1074,7 @@ function getChangedExamplesForCommit(commit, relativePath) {
|
||||||
return commit.getDiff().then(function(diffList) {
|
return commit.getDiff().then(function(diffList) {
|
||||||
var filePaths = [];
|
var filePaths = [];
|
||||||
diffList.forEach(function (diff) {
|
diffList.forEach(function (diff) {
|
||||||
diff.patches().forEach(function (patch) {
|
diff.patches().then(function (patch) {
|
||||||
if (patch.isAdded() || patch.isModified) {
|
if (patch.isAdded() || patch.isModified) {
|
||||||
var filePath = path.normalize(patch.newFile().path());
|
var filePath = path.normalize(patch.newFile().path());
|
||||||
var isExample = filePath.indexOf(relativePath) >= 0;
|
var isExample = filePath.indexOf(relativePath) >= 0;
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"minimatch": "^2.0.10",
|
"minimatch": "^2.0.10",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
"node-html-encoder": "0.0.2",
|
"node-html-encoder": "0.0.2",
|
||||||
"nodegit": "0.5.0",
|
"nodegit": "0.13.0",
|
||||||
"path": "^0.11.14",
|
"path": "^0.11.14",
|
||||||
"prompt": "^0.2.14",
|
"prompt": "^0.2.14",
|
||||||
"protractor": "^3.0.0",
|
"protractor": "^3.0.0",
|
||||||
|
|
Loading…
Reference in New Issue