Skip to content

Commit 5b8750d

Browse files
authored
Merge pull request piceaTech#224 from SanderSander/fix_closed_at
Support for closed_at date
2 parents 2275158 + 736fda2 commit 5b8750d

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
@@ -38,6 +38,7 @@ interface IssueImport {
3838
assignee?: string;
3939
created_at?: string;
4040
updated_at?: string;
41+
closed_at?: string;
4142
milestone?: number;
4243
labels?: string[];
4344
}
@@ -470,6 +471,10 @@ export class GithubHelper {
470471
closed: issue.state === 'closed',
471472
};
472473

474+
if (issue.state === 'closed') {
475+
props.closed_at = issue.closed_at;
476+
}
477+
473478
let assignees = this.convertAssignees(issue);
474479
props.assignee = assignees.length == 1 ? assignees[0] : undefined;
475480
props.milestone = this.convertMilestone(issue);

0 commit comments

Comments
 (0)