in index.js [45:58]
weekday_number: parseInt(m.format('d')),
hour_of_day: parseInt(m.format('H'))
};
}
/**
* Takes in the raw issue from the GitHub API response and must return the
* object that should be stored inside Elasticsearch.
*/
function convertIssue(owner, repo, raw) {
const time_to_fix = (raw.created_at && raw.closed_at) ?
moment(raw.closed_at).diff(moment(raw.created_at)) :
null;
return {