@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/git/models/issue.d.ts +2 -0
  3. package/dist/git/models/issue.js.map +1 -1
  4. package/dist/git/models/issueOrPullRequest.d.ts +4 -0
  5. package/dist/git/models/pullRequest.d.ts +2 -0
  6. package/dist/git/models/pullRequest.js.map +1 -1
  7. package/dist/plus/git-github/api/github.d.ts +2 -4
  8. package/dist/plus/git-github/api/github.js +12 -2
  9. package/dist/plus/git-github/api/github.js.map +1 -1
  10. package/dist/plus/git-github/api/issueWrites.d.ts +3 -2
  11. package/dist/plus/git-github/api/issueWrites.js +10 -5
  12. package/dist/plus/git-github/api/issueWrites.js.map +1 -1
  13. package/dist/plus/git-github/models.js +7 -3
  14. package/dist/plus/git-github/models.js.map +1 -1
  15. package/dist/plus/integrations/index.d.ts +2 -2
  16. package/dist/plus/integrations/index.js.map +1 -1
  17. package/dist/plus/integrations/integrationService.d.ts +2 -1
  18. package/dist/plus/integrations/integrationService.js +14 -0
  19. package/dist/plus/integrations/integrationService.js.map +1 -1
  20. package/dist/plus/integrations/manager.d.ts +9 -1
  21. package/dist/plus/integrations/providers/azure/azure.js +20 -14
  22. package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
  23. package/dist/plus/integrations/providers/azure/models.js +7 -3
  24. package/dist/plus/integrations/providers/azure/models.js.map +1 -1
  25. package/dist/plus/integrations/providers/bitbucket/bitbucket.js +18 -13
  26. package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
  27. package/dist/plus/integrations/providers/bitbucket/models.js +5 -2
  28. package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
  29. package/dist/plus/integrations/providers/bitbucket-server/models.js +3 -1
  30. package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
  31. package/dist/plus/integrations/providers/github.d.ts +2 -4
  32. package/dist/plus/integrations/providers/github.js.map +1 -1
  33. package/dist/plus/integrations/providers/gitlab/gitlab.js +12 -6
  34. package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
  35. package/dist/plus/integrations/providers/gitlab/models.js +5 -2
  36. package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
  37. package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
  38. package/dist/plus/integrations/providers/jiraIssueByKey.js +3 -1
  39. package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
  40. package/dist/plus/integrations/providers/models.js +9 -4
  41. package/dist/plus/integrations/providers/models.js.map +1 -1
  42. package/dist/plus/integrations/providers/providerApiClient.js +10 -7
  43. package/dist/plus/integrations/providers/providerApiClient.js.map +1 -1
  44. package/dist/plus/integrations/providers/providersApi.js +3 -1
  45. package/dist/plus/integrations/providers/providersApi.js.map +1 -1
  46. package/dist/plus/integrations/reads/drains.d.ts +0 -1
  47. package/docs/integrations.md +15 -9
  48. 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";
@@ -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 | Operation |
758
- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
759
- | `writeIssue` | Pass `action: 'create'` with a `title` and an optional `body`. |
760
- | `writeIssue` | Pass `action: 'edit'` with at least one of `title` or `body`. An empty body clears the description. |
761
- | `writeIssue` | Pass `action: 'set-state'`. Use `state: 'open'` to reopen, or `state: 'closed'` with `reason: 'completed'` or `'not_planned'`. |
762
- | `deleteIssue` | Permanently delete the issue if GitHub grants the selected account permission. Obtain confirmation in the calling UI before invoking it. |
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 from before removal. An `ok: false` result contains
766
- a typed reason. GitHub can report inaccessible private resources as `not-found`. Check GitHub before retrying
767
- an `unknown` result, since GitHub may have applied the mutation before the response was lost.
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.41.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.69.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",