github_api_helper.js
/**
 * Filters the listed files and returns only the files relevant to us
 * @param {*} rawData the raw output from list files API call
 * @return {Promise[]<any>} the filtered GitHub response
 */
Filters the listed files and returns only the files relevant to us
@param {*} rawData the raw output from list files API call
@return {Promise[]} the filtered GitHub response
Filters the listed files and returns only the files relevant to us @param { * } rawData the raw output from list files API call @return { Promise [] } the filtered GitHub response
function filterData (rawData) {
  return rawData.data.filter(file => config.fileExtensions.reduce((acc, ext) => acc || file.filename.endsWith(ext), false))
    .filter(fileJSON => fileJSON.status !== 'removed').map(async fileInfo => {
      return fileInfo.filename
    })
}
function filterData ( rawData ) { return rawData . data . filter ( file => config . fileExtensions . reduce ( ( acc , ext ) => acc || file . filename . endsWith ( ext ) , false ) ) . filter ( fileJSON => fileJSON . status !== 'removed' ) . map ( async fileInfo => { return fileInfo . filename } ) }
Filters the listed files and returns only the files relevant to us
 @param {*} rawData the raw output from list files API call
 @return {Promise[]<any>} the filtered GitHub response
Filters the listed files and returns only the files relevant to us @param { * } rawData the raw output from list files API call @return { Promise [] <any > } the filtered GitHub response