File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ var github = require('../github'),
55module . exports = function ( issue ) {
66 return github . get ( "/repos/:owner/:repo/pulls/:number/files" , { number : issue } )
77 . then ( function ( files ) {
8- return files . map ( funk . prop ( 'filename' ) ) ;
8+ return {
9+ all : files . map ( funk . prop ( 'filename' ) ) ,
10+ ignoreRemoved : files . filter ( function ( file ) { return file . status != "removed" } ) . map ( funk . prop ( 'filename' ) )
11+ } ;
912 } ) ;
1013} ;
1114
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ module.exports = function getMetadada(number, author) {
1818 } ;
1919 return filenames ( number )
2020 . then ( function ( filenames ) {
21- metadata . filenames = filenames ;
22- metadata . paths = paths ( filenames ) ;
23- metadata . rawLabels = rawLabels ( filenames ) ;
24- metadata . isSafe = isSafe ( filenames ) ;
25- metadata . testUrls = testUrls ( number , filenames , metadata . paths ) ;
21+ metadata . filenames = filenames . all ;
22+ metadata . filenamesIgnoreRemoved = filenames . ignoreRemoved ;
23+ metadata . paths = paths ( metadata . filenames ) ;
24+ metadata . rawLabels = rawLabels ( metadata . filenames ) ;
25+ metadata . isSafe = isSafe ( filenames . ignoreRemoved ) ;
26+ metadata . testUrls = testUrls ( number , filenames . ignoreRemoved , metadata . paths ) ;
2627 return findSpecs ( metadata . rawLabels ) ;
2728 } ) . then ( function ( specs ) {
2829 metadata . specs = specs ;
You can’t perform that action at this time.
0 commit comments