@gitkraken/core-gitlens 0.46.0 → 0.48.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 (74) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/git-cli/providers/branches.js +8 -4
  3. package/dist/git-cli/providers/branches.js.map +1 -1
  4. package/dist/plus/ai/providers/anthropicProvider.js +0 -20
  5. package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
  6. package/dist/plus/git-github/api/enterprisePullRequestMergePolicy.d.ts +31 -0
  7. package/dist/plus/git-github/api/enterprisePullRequestMergePolicy.js +166 -0
  8. package/dist/plus/git-github/api/enterprisePullRequestMergePolicy.js.map +1 -0
  9. package/dist/plus/git-github/api/github.d.ts +7 -4
  10. package/dist/plus/git-github/api/github.js +44 -14
  11. package/dist/plus/git-github/api/github.js.map +1 -1
  12. package/dist/plus/git-github/api/issueWrites.d.ts +1 -0
  13. package/dist/plus/git-github/api/issueWrites.js +5 -5
  14. package/dist/plus/git-github/api/issueWrites.js.map +1 -1
  15. package/dist/plus/git-github/api/pullRequestWrites.d.ts +7 -3
  16. package/dist/plus/git-github/api/pullRequestWrites.js +120 -67
  17. package/dist/plus/git-github/api/pullRequestWrites.js.map +1 -1
  18. package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +4 -4
  19. package/dist/plus/integrations/authentication/configuredIntegrationService.js +14 -14
  20. package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
  21. package/dist/plus/integrations/authentication/integrationAuthenticationService.js +3 -3
  22. package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
  23. package/dist/plus/integrations/context.d.ts +4 -4
  24. package/dist/plus/integrations/index.d.ts +8 -4
  25. package/dist/plus/integrations/index.js +2 -1
  26. package/dist/plus/integrations/index.js.map +1 -1
  27. package/dist/plus/integrations/integrationService.d.ts +9 -2
  28. package/dist/plus/integrations/integrationService.js +95 -31
  29. package/dist/plus/integrations/integrationService.js.map +1 -1
  30. package/dist/plus/integrations/manager.d.ts +16 -4
  31. package/dist/plus/integrations/models/gitHostIntegration.js +7 -4
  32. package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
  33. package/dist/plus/integrations/models/integration.d.ts +2 -1
  34. package/dist/plus/integrations/models/integration.js +11 -4
  35. package/dist/plus/integrations/models/integration.js.map +1 -1
  36. package/dist/plus/integrations/models/issueTrackerWrites.d.ts +128 -0
  37. package/dist/plus/integrations/models/issueTrackerWrites.js +0 -0
  38. package/dist/plus/integrations/models/publicIntegration.d.ts +4 -0
  39. package/dist/plus/integrations/models/publicIntegration.js.map +1 -1
  40. package/dist/plus/integrations/providers/github.d.ts +19 -6
  41. package/dist/plus/integrations/providers/github.js +126 -53
  42. package/dist/plus/integrations/providers/github.js.map +1 -1
  43. package/dist/plus/integrations/providers/jira.js +1 -1
  44. package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +2 -0
  45. package/dist/plus/integrations/providers/jiraIssueByKey.js +1 -1
  46. package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
  47. package/dist/plus/integrations/providers/jiraIssueWriteErrors.d.ts +10 -0
  48. package/dist/plus/integrations/providers/jiraIssueWriteErrors.js +68 -0
  49. package/dist/plus/integrations/providers/jiraIssueWriteErrors.js.map +1 -0
  50. package/dist/plus/integrations/providers/jiraIssueWrites.d.ts +40 -0
  51. package/dist/plus/integrations/providers/jiraIssueWrites.js +397 -0
  52. package/dist/plus/integrations/providers/jiraIssueWrites.js.map +1 -0
  53. package/dist/plus/integrations/providers/providersApi.d.ts +4 -1
  54. package/dist/plus/integrations/providers/providersApi.js +21 -10
  55. package/dist/plus/integrations/providers/providersApi.js.map +1 -1
  56. package/dist/plus/integrations/utils/integration.utils.d.ts +1 -0
  57. package/dist/plus/integrations/utils/integration.utils.js +7 -1
  58. package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
  59. package/dist/utils/date.d.ts +1 -0
  60. package/dist/utils/date.js +10 -1
  61. package/dist/utils/date.js.map +1 -1
  62. package/dist/utils/keys/keymapDispatcher.d.ts +12 -0
  63. package/dist/utils/keys/keymapDispatcher.js +33 -1
  64. package/dist/utils/keys/keymapDispatcher.js.map +1 -1
  65. package/dist/utils/pausedOperation.js +48 -16
  66. package/dist/utils/pausedOperation.js.map +1 -1
  67. package/dist/utils/plural.d.ts +1 -0
  68. package/dist/utils/plural.js +7 -2
  69. package/dist/utils/plural.js.map +1 -1
  70. package/dist/utils/wheel.d.ts +8 -0
  71. package/dist/utils/wheel.js +12 -0
  72. package/dist/utils/wheel.js.map +1 -0
  73. package/docs/integrations.md +80 -8
  74. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.48.0] - 2026-11-24
10
+
11
+ ## [0.47.1] - 2026-11-24
12
+
13
+ ### Fixed
14
+
15
+ - Reports absent refs and unrelated histories as typed conflict detection errors when Git cannot run a merge-tree check (git-cli)
16
+
17
+ ## [0.47.0] - 2026-11-24
18
+
19
+ ### Added
20
+
21
+ - Adds Jira Cloud issue writes to `IntegrationManager`: `getIssueTrackerCreateOptions`, `getIssueTrackerIssueWriteOptions`, `writeIssueTrackerIssue` (create, edit and workflow transitions), `deleteIssueTrackerIssue` and `resolveIssueTrackerIssueWriteTarget`. Each call names the connection and the site's cloud ID and uses the same credential as reads. Create and edit metadata, available transitions and the account's permissions come from Jira; writes go by the canonical issue ID, so a moved key, a stale ID or the same key on another site is refused without writing. Failures carry typed reasons, including Jira's field errors, unavailable transitions and a missing delete scope that leaves the credential valid (plus/integrations)
22
+ - Adds GitHub Enterprise Server pull request writes to `IntegrationManager`. Create, edit, close, reopen, merge, and enqueue use the selected installation and verified login. Core checks the server's merge capabilities and the target branch's policy before offering merge or enqueue. Confirmed Enterprise receipts include the installation origin (plus/integrations, plus/git-github)
23
+
9
24
  ## [0.46.0] - 2026-11-23
10
25
 
11
26
  ### Added
@@ -1421,7 +1436,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1421
1436
 
1422
1437
  - Initial release. Bundles `@gitlens/utils`, `@gitlens/git`, `@gitlens/git-cli`, `@gitlens/ai`, and `@gitlens/git-github` into a single core npm package with subpath exports.
1423
1438
 
1424
- [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.46.0...HEAD
1439
+ [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.48.0...HEAD
1440
+ [0.48.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.1...gitkraken:releases/core/v0.48.0
1441
+ [0.47.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.0...gitkraken:releases/core/v0.47.1
1442
+ [0.47.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.46.0...gitkraken:releases/core/v0.47.0
1425
1443
  [0.46.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.45.0...gitkraken:releases/core/v0.46.0
1426
1444
  [0.45.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.44.0...gitkraken:releases/core/v0.45.0
1427
1445
  [0.44.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.43.0...gitkraken:releases/core/v0.44.0
@@ -65,6 +65,8 @@ const branchActivityKeys = [
65
65
  "gk-last-modified",
66
66
  "gk-agent-last-activity"
67
67
  ];
68
+ const mergeTreeRefNotFound = /^merge-tree: [^\r\n]+ - not something we can merge\s*$/i;
69
+ const mergeTreeNoMergeBase = /^fatal: refusing to merge unrelated histories\s*$/i;
68
70
  /**
69
71
  * The most commits a base's reflog may reach off its new tip's history for a re-measure: every worktree's count
70
72
  * excludes each of them on its command line, and more come only from a long history force-pushed away, where a full
@@ -1225,13 +1227,14 @@ var BranchesGitSubProvider = class {
1225
1227
  } catch (ex) {
1226
1228
  if (isCancellationError(ex)) throw ex;
1227
1229
  const msg = ex?.toString() ?? "";
1228
- if (GitErrors.notAValidObjectName.test(msg)) {
1230
+ const stderr = ex instanceof GitError ? ex.stderr ?? "" : "";
1231
+ if (GitErrors.notAValidObjectName.test(msg) || mergeTreeRefNotFound.test(stderr)) {
1229
1232
  scope?.error(ex, `'${targetBranch}' or '${branch}' not found - ensure the branches exist and are fully qualified (e.g. 'refs/heads/main')`);
1230
1233
  return createConflictDetectionError("refNotFound");
1231
1234
  } else if (GitErrors.badRevision.test(msg)) {
1232
1235
  scope?.error(ex, `Invalid branch name: ${msg.slice(msg.indexOf("'"))}`);
1233
1236
  return createConflictDetectionError("refNotFound");
1234
- } else if (GitErrors.noMergeBase.test(msg)) {
1237
+ } else if (GitErrors.noMergeBase.test(msg) || mergeTreeNoMergeBase.test(stderr)) {
1235
1238
  scope?.error(ex, `Unable to merge '${branch}' and '${targetBranch}' as they have no common ancestor`);
1236
1239
  return createConflictDetectionError("noMergeBase");
1237
1240
  } else if (ex instanceof GitError && ex.stdout) data = ex.stdout;
@@ -1320,7 +1323,8 @@ var BranchesGitSubProvider = class {
1320
1323
  } catch (ex) {
1321
1324
  if (isCancellationError(ex)) throw ex;
1322
1325
  const msg = ex?.toString() ?? "";
1323
- if (GitErrors.notAValidObjectName.test(msg)) {
1326
+ const stderr = ex instanceof GitError ? ex.stderr ?? "" : "";
1327
+ if (GitErrors.notAValidObjectName.test(msg) || mergeTreeRefNotFound.test(stderr)) {
1324
1328
  scope?.error(ex, `'${ours}' or '${theirs}' not found - ensure the branches/commits exist`);
1325
1329
  return {
1326
1330
  ok: false,
@@ -1332,7 +1336,7 @@ var BranchesGitSubProvider = class {
1332
1336
  ok: false,
1333
1337
  reason: "refNotFound"
1334
1338
  };
1335
- } else if (GitErrors.noMergeBase.test(msg)) {
1339
+ } else if (GitErrors.noMergeBase.test(msg) || mergeTreeNoMergeBase.test(stderr)) {
1336
1340
  scope?.error(ex, `Unable to merge '${ours}' and '${theirs}' as they have no common ancestor`);
1337
1341
  return {
1338
1342
  ok: false,