@gitkraken/core-gitlens 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -1
- package/dist/git/models/statusFile.d.ts +3 -2
- package/dist/git/models/statusFile.js +4 -1
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +2 -1
- package/dist/git-cli/parsers/statusParser.js +53 -27
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/providers/status.js +3 -5
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +7 -0
- package/dist/plus/integrations/collectionMetadata.js +11 -1
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +5 -0
- package/dist/plus/integrations/models/issuesIntegration.d.ts +37 -1
- package/dist/plus/integrations/models/issuesIntegration.js +118 -2
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +8 -1
- package/dist/plus/integrations/providers/jira-server.js +90 -138
- package/dist/plus/integrations/providers/jira-server.js.map +1 -1
- package/dist/plus/integrations/providers/jira.d.ts +11 -1
- package/dist/plus/integrations/providers/jira.js +88 -122
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +22 -1
- package/dist/plus/integrations/providers/linear.js +84 -35
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +5 -9
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +24 -3
- package/dist/plus/integrations/providers/providersApi.js +56 -4
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.d.ts +86 -0
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.js +139 -0
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.js.map +1 -0
- package/dist/plus/integrations/reads/drains.d.ts +0 -1
- package/dist/plus/integrations/reads/issueTracker.js +20 -9
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/package.json +2 -2
|
@@ -248,6 +248,7 @@ var ProvidersApi = class {
|
|
|
248
248
|
getJiraProjectsForResourceFn: providerApis.jira.getJiraProjectsForResource.bind(providerApis.jira),
|
|
249
249
|
getIssueFn: providerApis.jira.getIssue.bind(providerApis.jira),
|
|
250
250
|
getIssuesForProjectFn: providerApis.jira.getIssuesForProject.bind(providerApis.jira),
|
|
251
|
+
getIssuesForProjectsFn: providerApis.jira.getIssuesForProjects.bind(providerApis.jira),
|
|
251
252
|
getIssuesForResourceForCurrentUserFn: providerApis.jira.getIssuesForResourceForCurrentUser.bind(providerApis.jira)
|
|
252
253
|
},
|
|
253
254
|
["jira-server"]: {
|
|
@@ -256,6 +257,7 @@ var ProvidersApi = class {
|
|
|
256
257
|
getJiraServerCurrentUserFn: providerApis.jiraServer.getCurrentUser.bind(providerApis.jiraServer),
|
|
257
258
|
getJiraServerProjectsFn: providerApis.jiraServer.getJiraProjects.bind(providerApis.jiraServer),
|
|
258
259
|
getJiraServerIssuesForProjectFn: providerApis.jiraServer.getIssuesForProject.bind(providerApis.jiraServer),
|
|
260
|
+
getJiraServerIssuesForProjectsFn: providerApis.jiraServer.getIssuesForProjects.bind(providerApis.jiraServer),
|
|
259
261
|
getJiraServerIssueFn: providerApis.jiraServer.getIssue.bind(providerApis.jiraServer),
|
|
260
262
|
getJiraServerIssuesForCurrentUserFn: providerApis.jiraServer.getIssuesForResourceForCurrentUser.bind(providerApis.jiraServer)
|
|
261
263
|
},
|
|
@@ -668,7 +670,7 @@ var ProvidersApi = class {
|
|
|
668
670
|
async getAzurePullRequest(tokenOptInfo, repo, id, options) {
|
|
669
671
|
const { tokenWithInfo } = await this.ensureProviderToken(tokenOptInfo);
|
|
670
672
|
const token = tokenWithInfo.accessToken;
|
|
671
|
-
const url = `${(options.baseUrl ?? azureDevOpsBaseUrl).replace(/\/$/, "")}/${encodeAzurePathSegment(repo.namespace)}/${encodeAzurePathSegment(repo.project)}/_apis/git/repositories/${encodeAzurePathSegment(repo.name)}/pullrequests/${id}?api-version=
|
|
673
|
+
const url = `${(options.baseUrl ?? azureDevOpsBaseUrl).replace(/\/$/, "")}/${encodeAzurePathSegment(repo.namespace)}/${encodeAzurePathSegment(repo.project)}/_apis/git/repositories/${encodeAzurePathSegment(repo.name)}/pullrequests/${id}?api-version=6.0`;
|
|
672
674
|
try {
|
|
673
675
|
const result = await this.request({
|
|
674
676
|
url,
|
|
@@ -744,9 +746,8 @@ var ProvidersApi = class {
|
|
|
744
746
|
}
|
|
745
747
|
}
|
|
746
748
|
/**
|
|
747
|
-
* Reads issues scoped to Linear teams/projects/labels (Linear's issue-list filter). One page per
|
|
748
|
-
* follow `paging.cursor`.
|
|
749
|
-
* applied client-side by the caller.
|
|
749
|
+
* Reads issues scoped to Linear teams/projects/labels/assignees (Linear's issue-list filter). One page per
|
|
750
|
+
* call — follow `paging.cursor`. `assignees` takes Linear user ids (the viewer's `id`), not names.
|
|
750
751
|
*/
|
|
751
752
|
async getLinearIssues(tokenOptInfo, input, options) {
|
|
752
753
|
const { provider, tokenWithInfo } = await this.ensureProviderTokenAndFunction(tokenOptInfo, "getLinearIssuesFn");
|
|
@@ -1183,6 +1184,32 @@ var ProvidersApi = class {
|
|
|
1183
1184
|
return this.handleProviderError(tokenWithInfo, e);
|
|
1184
1185
|
}
|
|
1185
1186
|
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Single page of one issue search across several projects of a Jira Server instance — the contract of
|
|
1189
|
+
* {@link getIssuesForProjectsPaged} on Cloud: the page and its cursor are global to the project set, and at
|
|
1190
|
+
* most `JIRA_MAX_PROJECT_KEYS_PER_REQUEST` keys are accepted per call.
|
|
1191
|
+
*/
|
|
1192
|
+
async getJiraServerIssuesForProjectsPaged(tokenOptInfo, baseUrl, projectKeys, options) {
|
|
1193
|
+
const { provider, tokenWithInfo } = await this.ensureProviderTokenAndFunction(tokenOptInfo, "getJiraServerIssuesForProjectsFn");
|
|
1194
|
+
try {
|
|
1195
|
+
const result = await provider.getJiraServerIssuesForProjectsFn?.({
|
|
1196
|
+
projectKeys,
|
|
1197
|
+
...options,
|
|
1198
|
+
includeTransitions: jiraListIncludeTransitions
|
|
1199
|
+
}, {
|
|
1200
|
+
token: tokenWithInfo.accessToken,
|
|
1201
|
+
baseUrl
|
|
1202
|
+
});
|
|
1203
|
+
if (result == null) return void 0;
|
|
1204
|
+
return {
|
|
1205
|
+
data: result.data,
|
|
1206
|
+
hasMore: result.pageInfo?.hasNextPage ?? false,
|
|
1207
|
+
nextCursor: result.pageInfo?.endCursor ?? void 0
|
|
1208
|
+
};
|
|
1209
|
+
} catch (e) {
|
|
1210
|
+
return this.handleProviderError(tokenWithInfo, e);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1186
1213
|
async getJiraServerIssue(tokenOptInfo, baseUrl, number) {
|
|
1187
1214
|
const { provider, tokenWithInfo } = await this.ensureProviderTokenAndFunction(tokenOptInfo, "getJiraServerIssueFn");
|
|
1188
1215
|
try {
|
|
@@ -1218,6 +1245,31 @@ var ProvidersApi = class {
|
|
|
1218
1245
|
return this.handleProviderError(tokenWithInfo, e);
|
|
1219
1246
|
}
|
|
1220
1247
|
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Single page of one issue search across several projects of the same Jira site. The page, its cursor and
|
|
1250
|
+
* `hasMore` are global to the whole project set, not per project; at most `JIRA_MAX_PROJECT_KEYS_PER_REQUEST`
|
|
1251
|
+
* keys are accepted per call (the SDK throws past it), so the caller chunks.
|
|
1252
|
+
*/
|
|
1253
|
+
async getIssuesForProjectsPaged(tokenOptInfo, projectKeys, resourceId, options) {
|
|
1254
|
+
const { provider, tokenWithInfo } = await this.ensureProviderTokenAndFunction(tokenOptInfo, "getIssuesForProjectsFn");
|
|
1255
|
+
const token = tokenWithInfo.accessToken;
|
|
1256
|
+
try {
|
|
1257
|
+
const result = await provider.getIssuesForProjectsFn?.({
|
|
1258
|
+
projectKeys,
|
|
1259
|
+
resourceId,
|
|
1260
|
+
...options,
|
|
1261
|
+
includeTransitions: jiraListIncludeTransitions
|
|
1262
|
+
}, { token });
|
|
1263
|
+
if (result == null) return void 0;
|
|
1264
|
+
return {
|
|
1265
|
+
data: result.data,
|
|
1266
|
+
hasMore: result.pageInfo?.hasNextPage ?? false,
|
|
1267
|
+
nextCursor: result.pageInfo?.endCursor ?? void 0
|
|
1268
|
+
};
|
|
1269
|
+
} catch (e) {
|
|
1270
|
+
return this.handleProviderError(tokenWithInfo, e);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1221
1273
|
async getTrelloCard(tokenOptInfo, appKey, cardId, options) {
|
|
1222
1274
|
const { tokenWithInfo } = await this.ensureProviderToken(tokenOptInfo);
|
|
1223
1275
|
try {
|