Skip to content

Commit e7412d5

Browse files
Carstenjohannesjo
Carsten
authored andcommitted
Add functionality if a Issue on Gitlab is closed the Issue on Super is also closed after syncron.
1 parent d826778 commit e7412d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts

+5
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface {
175175
issueWasUpdated: false,
176176
issueLastUpdated: new Date(issue.updated_at).getTime(),
177177
issueId: issue.id,
178+
isDone: this._isIssueDone(issue),
178179
};
179180
}
180181

@@ -197,4 +198,8 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface {
197198
private _getCfgOnce$(issueProviderId: string): Observable<IssueProviderGitlab> {
198199
return this._issueProviderService.getCfgOnce$(issueProviderId, 'GITLAB');
199200
}
201+
202+
private _isIssueDone(issue: GitlabIssue): boolean {
203+
return issue.state === 'closed';
204+
}
200205
}

0 commit comments

Comments
 (0)