Skip to content

Commit 970c352

Browse files
Updates integrations section in walkthrough and fixes Jira connect links
1 parent e6c13e2 commit 970c352

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17392,7 +17392,7 @@
1739217392
{
1739317393
"id": "integrations",
1739417394
"title": "Integrate with Git Hosting & Issue Services",
17395-
"description": "Simplify your workflow and quickly gain insights with automatic linking of issues and pull requests across multiple Git hosting services including GitHub, GitHub Enterprise, GitLab, GitLab self-managed, Gitea, Gerrit, Google Source, Bitbucket, Bitbucket Server, Azure DevOps, and custom servers.\n\nAll integration provide automatic linking, while rich integrations with GitHub & GitLab offer detailed hover information for autolinks, and correlations between pull requests, branches, and commits, as well as user avatars for added context.\n\n**Define your own autolinks**\nUse autolinks to linkify external references, like Jira issues or Zendesk tickets, in commit messages.\n\n[Configure Autolinks](command:gitlens.showSettingsPage!autolinks)",
17395+
"description": "GitLens automatically detects patterns in commit messages to generate autolinks to pull requests and issues for Git hosting services including GitHub, GitLab, Gitea, Gerrit, Google Source, Bitbucket, Azure DevOps, and custom servers.\n\n[Configure autolinks](command:gitlens.showSettingsPage!autolinks) for custom pattern-matching with other services.\n\n**Rich Integrations with GitHub, GitLab, and Jira**\nConnect [GitHub](command:gitlens.connectRemoteProvider), [GitLab](command:gitlens.connectRemoteProvider), and [Jira](command:gitlens.plus.cloudIntegrations.manage?%7B%22integrationId%22%3A%22jira%22%2C%22source%22%3A%22walkthrough%22%2C%22detail%22%3A%7B%22action%22%3A%22connect%22%2C%22integration%22%3A%22jira%22%7D%7D) integrations to enhance autolinks with more data available via APIs, associate branches and commits with PRs, and review pull requests within VS Code.",
1739617396
"media": {
1739717397
"markdown": "walkthroughs/welcome/integrations.md"
1739817398
}

src/webviews/apps/commitDetails/components/gl-commit-details.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { customElement, property, state } from 'lit/decorators.js';
33
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
44
import { when } from 'lit/directives/when.js';
55
import type { Autolink } from '../../../../annotations/autolinks';
6-
import type { Source } from '../../../../constants';
76
import type { IssueOrPullRequest } from '../../../../git/models/issue';
87
import type { PullRequestShape } from '../../../../git/models/pullRequest';
98
import type { Serialized } from '../../../../system/serialize';
@@ -172,12 +171,13 @@ export class GlCommitDetails extends GlDetailsBase {
172171
let message = html`<a
173172
href="command:gitlens.plus.cloudIntegrations.manage?${encodeURIComponent(
174173
JSON.stringify({
174+
integrationId: 'jira',
175175
source: 'inspect',
176176
detail: {
177177
action: 'connect',
178178
integration: 'jira',
179179
},
180-
} satisfies Source),
180+
}),
181181
)}"
182182
>Connect to Jira Cloud</a
183183
>
@@ -243,12 +243,13 @@ export class GlCommitDetails extends GlDetailsBase {
243243
const { hasAccount, hasConnectedJira } = this.state ?? {};
244244
const jiraIntegrationLink = `command:gitlens.plus.cloudIntegrations.manage?${encodeURIComponent(
245245
JSON.stringify({
246+
integrationId: 'jira',
246247
source: 'inspect',
247248
detail: {
248249
action: 'connect',
249250
integration: 'jira',
250251
},
251-
} satisfies Source),
252+
}),
252253
)}`;
253254

254255
return html`

src/webviews/apps/settings/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*global document IntersectionObserver*/
22
import './settings.scss';
33
import type { AutolinkReference } from '../../../config';
4-
import type { Source } from '../../../constants';
54
import type { IpcMessage, UpdateConfigurationParams } from '../../protocol';
65
import { DidChangeConfigurationNotification, UpdateConfigurationCommand } from '../../protocol';
76
import type { State } from '../../settings/protocol';
@@ -805,12 +804,13 @@ export class SettingsApp extends App<State> {
805804
const { hasAccount, hasConnectedJira } = this.state;
806805
let message = `<a href="command:gitlens.plus.cloudIntegrations.manage?${encodeURIComponent(
807806
JSON.stringify({
807+
integrationId: 'jira',
808808
source: 'settings',
809809
detail: {
810810
action: 'connect',
811811
integration: 'jira',
812812
},
813-
} satisfies Source),
813+
}),
814814
)}">Connect to Jira Cloud</a> &mdash; ${
815815
hasAccount ? '' : 'sign up and '
816816
}get access to automatic rich Jira autolinks.`;

0 commit comments

Comments
 (0)