Skip to content

Commit

Permalink
add support for upcase due property
Browse files Browse the repository at this point in the history
  • Loading branch information
alexleventer committed Sep 11, 2019
1 parent fcbcc37 commit 60b5c4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/integrations/Octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ export default class Octokit {
return rawIssues.filter(issue => {
// TODO: Move into utils
const meta: any = fm(issue.body);
if (meta.attributes && meta.attributes.due) {
return Object.assign(issue, {due: meta.attributes.due});

const due = meta.attributes && (meta.attributes.due || meta.attributes.Due);
if (meta.attributes && due) {
return Object.assign(issue, {due});
}
});
}
Expand Down

0 comments on commit 60b5c4e

Please sign in to comment.