@@ -3,8 +3,10 @@ import { customElement, property, state } from 'lit/decorators.js';
3
3
import { unsafeHTML } from 'lit/directives/unsafe-html.js' ;
4
4
import { when } from 'lit/directives/when.js' ;
5
5
import type { Autolink } from '../../../../annotations/autolinks' ;
6
+ import type { ManageCloudIntegrationsCommandArgs } from '../../../../commands/cloudIntegrations' ;
6
7
import type { IssueOrPullRequest } from '../../../../git/models/issue' ;
7
8
import type { PullRequestShape } from '../../../../git/models/pullRequest' ;
9
+ import type { IssueIntegrationId } from '../../../../plus/integrations/providers/models' ;
8
10
import type { Serialized } from '../../../../system/serialize' ;
9
11
import type { State } from '../../../commitDetails/protocol' ;
10
12
import { messageHeadlineSplitterToken } from '../../../commitDetails/protocol' ;
@@ -171,13 +173,13 @@ export class GlCommitDetails extends GlDetailsBase {
171
173
let message = html `< a
172
174
href ="command:gitlens.plus.cloudIntegrations.manage? ${ encodeURIComponent (
173
175
JSON . stringify ( {
174
- integrationId : 'jira' ,
176
+ integrationId : 'jira' as IssueIntegrationId . Jira ,
175
177
source : 'inspect' ,
176
178
detail : {
177
179
action : 'connect' ,
178
180
integration : 'jira' ,
179
181
} ,
180
- } ) ,
182
+ } satisfies ManageCloudIntegrationsCommandArgs ) ,
181
183
) } "
182
184
> Connect to Jira Cloud</ a
183
185
>
@@ -243,13 +245,13 @@ export class GlCommitDetails extends GlDetailsBase {
243
245
const { hasAccount, hasConnectedJira } = this . state ?? { } ;
244
246
const jiraIntegrationLink = `command:gitlens.plus.cloudIntegrations.manage?${ encodeURIComponent (
245
247
JSON . stringify ( {
246
- integrationId : 'jira' ,
248
+ integrationId : 'jira' as IssueIntegrationId . Jira ,
247
249
source : 'inspect' ,
248
250
detail : {
249
251
action : 'connect' ,
250
252
integration : 'jira' ,
251
253
} ,
252
- } ) ,
254
+ } satisfies ManageCloudIntegrationsCommandArgs ) ,
253
255
) } `;
254
256
255
257
return html `
0 commit comments