@gitkraken/core-gitlens 0.41.0 → 0.43.0
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 +12 -1
- package/dist/git/models/issue.d.ts +2 -0
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +4 -0
- package/dist/git/models/pullRequest.d.ts +2 -0
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +2 -4
- package/dist/plus/git-github/api/github.js +12 -2
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/issueWrites.d.ts +3 -2
- package/dist/plus/git-github/api/issueWrites.js +10 -5
- package/dist/plus/git-github/api/issueWrites.js.map +1 -1
- package/dist/plus/git-github/models.js +7 -3
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +2 -2
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +2 -1
- package/dist/plus/integrations/integrationService.js +14 -0
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +9 -1
- package/dist/plus/integrations/providers/azure/azure.js +20 -14
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.js +7 -3
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +18 -13
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.js +5 -2
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.js +3 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/github.d.ts +2 -4
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.js +12 -6
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.js +5 -2
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/models.js +9 -4
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerApiClient.js +10 -7
- package/dist/plus/integrations/providers/providerApiClient.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.js +3 -1
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +0 -1
- package/docs/integrations.md +15 -9
- package/package.json +2 -2
|
@@ -2,7 +2,6 @@ import { ResourceDescriptor } from "../../../git/models/resourceDescriptor.js";
|
|
|
2
2
|
import { PullRequest, PullRequestFilter, PullRequestStateFilter } from "../../../git/models/pullRequest.js";
|
|
3
3
|
import { IntegrationIds } from "../constants.js";
|
|
4
4
|
import { ProviderWarning } from "../results.js";
|
|
5
|
-
import "../providerFilters.js";
|
|
6
5
|
import { ProviderPullRequest, ProviderReposInput, ProviderRepository } from "../providers/models.js";
|
|
7
6
|
import { GitHostIntegration } from "../models/gitHostIntegration.js";
|
|
8
7
|
import { IssuesIntegration } from "../models/issuesIntegration.js";
|
package/docs/integrations.md
CHANGED
|
@@ -754,17 +754,23 @@ Core resolves the repository and issue with that account before sending the muta
|
|
|
754
754
|
are scoped to their repository. For an existing issue, pass its `number` and the `expectedNodeId` from the
|
|
755
755
|
issue read. Core verifies that the node still belongs to the requested repository and number.
|
|
756
756
|
|
|
757
|
-
| Method
|
|
758
|
-
|
|
|
759
|
-
| `
|
|
760
|
-
| `writeIssue`
|
|
761
|
-
| `writeIssue`
|
|
762
|
-
| `
|
|
757
|
+
| Method | Operation |
|
|
758
|
+
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
759
|
+
| `resolveIssueWriteTarget` | Verify an existing issue and return its canonical `nodeId`. Use it to serialize writes and publication across aliases or transfers. |
|
|
760
|
+
| `writeIssue` | Pass `action: 'create'` with a `title` and an optional `body`. |
|
|
761
|
+
| `writeIssue` | Pass `action: 'edit'` with at least one of `title` or `body`. An empty body clears the description. |
|
|
762
|
+
| `writeIssue` | Pass `action: 'set-state'`. Use `state: 'open'` to reopen, or `state: 'closed'` with `reason: 'completed'` or `'not_planned'`. |
|
|
763
|
+
| `deleteIssue` | Permanently delete the issue if GitHub grants the selected account permission. Obtain confirmation in the calling UI before invoking it. |
|
|
763
764
|
|
|
764
765
|
An `IssueWriteResult` with `ok: true` contains the canonical owner, repository, issue number, node ID, URL,
|
|
765
|
-
title, body, and state. Deletion returns the issue snapshot
|
|
766
|
-
a
|
|
767
|
-
|
|
766
|
+
title, body, and state. Deletion returns the last verified issue snapshot. GitHub deletes by node ID and can
|
|
767
|
+
report a different repository if a transfer happened after preflight. In that case
|
|
768
|
+
`deletedFromDifferentRepository: true` preserves the confirmation. Use the node ID to reconcile deletion
|
|
769
|
+
and refresh affected lists and details. The snapshot still describes the earlier address.
|
|
770
|
+
|
|
771
|
+
An `ok: false` result contains a typed reason. GitHub can report inaccessible private resources as
|
|
772
|
+
`not-found`. Check GitHub before retrying an `unknown` result, since GitHub may have applied the mutation
|
|
773
|
+
before the response was lost.
|
|
768
774
|
|
|
769
775
|
## 5. Paging
|
|
770
776
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/core-gitlens",
|
|
3
3
|
"description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.43.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "GitKraken",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
"dependencies": {
|
|
262
|
-
"@gitkraken/provider-apis": "0.
|
|
262
|
+
"@gitkraken/provider-apis": "0.70.0",
|
|
263
263
|
"@octokit/graphql": "9.0.4",
|
|
264
264
|
"@octokit/request": "10.0.14",
|
|
265
265
|
"@octokit/request-error": "7.1.1",
|