Skip to content

Commit 736fda2

Browse files
SanderSanderGL-SanderV
authored andcommitted
Support for closed_at date
1 parent 126dd9f commit 736fda2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/githubHelper.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ interface IssueImport {
3636
assignee?: string;
3737
created_at?: string;
3838
updated_at?: string;
39+
closed_at?: string;
3940
milestone?: number;
4041
labels?: string[];
4142
}
@@ -462,6 +463,10 @@ export class GithubHelper {
462463
closed: issue.state === 'closed',
463464
};
464465

466+
if (issue.state === 'closed') {
467+
props.closed_at = issue.closed_at;
468+
}
469+
465470
let assignees = this.convertAssignees(issue);
466471
props.assignee = assignees.length == 1 ? assignees[0] : undefined;
467472
props.milestone = this.convertMilestone(issue);

0 commit comments

Comments
 (0)