@gitkraken/core-gitlens 0.39.0 → 0.40.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 (36) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/plus/git-github/api/github.d.ts +4 -0
  3. package/dist/plus/git-github/api/github.js +7 -0
  4. package/dist/plus/git-github/api/github.js.map +1 -1
  5. package/dist/plus/git-github/api/issueWrites.d.ts +51 -0
  6. package/dist/plus/git-github/api/issueWrites.js +192 -0
  7. package/dist/plus/git-github/api/issueWrites.js.map +1 -0
  8. package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +7 -8
  9. package/dist/plus/integrations/authentication/rejectedTokenTracker.js +7 -8
  10. package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
  11. package/dist/plus/integrations/index.d.ts +3 -2
  12. package/dist/plus/integrations/index.js.map +1 -1
  13. package/dist/plus/integrations/integrationService.d.ts +7 -1
  14. package/dist/plus/integrations/integrationService.js +37 -0
  15. package/dist/plus/integrations/integrationService.js.map +1 -1
  16. package/dist/plus/integrations/manager.d.ts +9 -0
  17. package/dist/plus/integrations/models/integration.d.ts +6 -4
  18. package/dist/plus/integrations/models/integration.js +15 -9
  19. package/dist/plus/integrations/models/integration.js.map +1 -1
  20. package/dist/plus/integrations/providers/asana.d.ts +4 -5
  21. package/dist/plus/integrations/providers/asana.js +53 -12
  22. package/dist/plus/integrations/providers/asana.js.map +1 -1
  23. package/dist/plus/integrations/providers/github.d.ts +5 -1
  24. package/dist/plus/integrations/providers/github.js +25 -0
  25. package/dist/plus/integrations/providers/github.js.map +1 -1
  26. package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
  27. package/dist/plus/integrations/providers/linear.js +6 -6
  28. package/dist/plus/integrations/providers/linear.js.map +1 -1
  29. package/dist/plus/integrations/providers/models.d.ts +6 -15
  30. package/dist/plus/integrations/providers/models.js +1 -1
  31. package/dist/plus/integrations/providers/models.js.map +1 -1
  32. package/dist/plus/integrations/providers/providersApi.d.ts +1 -6
  33. package/dist/plus/integrations/providers/providersApi.js.map +1 -1
  34. package/dist/plus/integrations/reads/drains.d.ts +0 -1
  35. package/docs/integrations.md +19 -0
  36. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.40.0] - 2026-11-20
10
+
11
+ ### Added
12
+
13
+ - Adds `IntegrationManager.writeIssue` and `deleteIssue` for GitHub.com. Create and edit issues, close as completed or not planned, reopen, or permanently delete with GitHub's permission. Writes use the specified connection and resolve the repository and issue before mutating them. Success returns the canonical issue identity and URL, and refusals report a typed reason (plus/integrations)
14
+
15
+ ### Fixed
16
+
17
+ - Fixes a user-scoped Asana tracker read (`listIssueTrackerIssuesPage` without `includeAllAssignees`, and `IssuesIntegration.getIssuesForProjects*` with `options.user`) leaving out the viewer's tasks that are in several projects: the shared "my tasks" read filed each task under only the first project Asana lists for it, so a sprint board whose tasks are also on each customer's own board showed only the tasks that live on it alone. A task is now filed under every requested project it is in, with its section in that project as its state, read from the `Issue.projectMemberships` that `@gitkraken/provider-apis` 0.69.0 reports (plus/integrations)
18
+
19
+ ### Changed
20
+
21
+ - Changes `@gitkraken/provider-apis` to 0.69.0, which also brings 0.68.0's breaking Linear changes. The Linear account core reads for the viewer now carries their avatar, and its `username` is still Linear's display name (plus/integrations)
22
+
9
23
  ## [0.39.0] - 2026-11-16
10
24
 
11
25
  ### Added
@@ -1333,7 +1347,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1333
1347
 
1334
1348
  - 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.
1335
1349
 
1336
- [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.39.0...HEAD
1350
+ [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.40.0...HEAD
1351
+ [0.40.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.39.0...gitkraken:releases/core/v0.40.0
1337
1352
  [0.39.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.38.4...gitkraken:releases/core/v0.39.0
1338
1353
  [0.38.4]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.38.3...gitkraken:releases/core/v0.38.4
1339
1354
  [0.38.3]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.38.2...gitkraken:releases/core/v0.38.3
@@ -12,6 +12,7 @@ import { DefaultBranch } from "../../../git/models/defaultBranch.js";
12
12
  import { RepositoryMetadata } from "../../../git/models/repositoryMetadata.js";
13
13
  import { GitHubApiConfig } from "./config.js";
14
14
  import { GitHubBlame, GitHubBranch, GitHubCommit, GitHubCommitRef, GitHubContributor, GitHubIssueEtagInclude, GitHubIssueEtagNode, GitHubPagedResult, GitHubPullRequestEtagInclude, GitHubPullRequestEtagNode, GitHubPullRequestState, GitHubSshSigningKey, GitHubTag } from "../models.js";
15
+ import { GitHubIssueDelete, GitHubIssueWrite, IssueWriteResult } from "./issueWrites.js";
15
16
  import { GitHubTokenInfo } from "./token.js";
16
17
  import { Endpoints } from "@octokit/types";
17
18
  //#region ../plus/git-github/src/api/github.d.ts
@@ -237,6 +238,9 @@ export declare class GitHubApi {
237
238
  private getEnterpriseVersion;
238
239
  private requestWithRetries;
239
240
  private delayWithAbort;
241
+ mutateIssue(provider: Provider, token: GitHubTokenInfo, input: GitHubIssueWrite | (GitHubIssueDelete & {
242
+ action: 'delete';
243
+ })): Promise<IssueWriteResult>;
240
244
  private readonly _pendingGraphQL;
241
245
  private graphql;
242
246
  private request;
@@ -20,6 +20,7 @@ import { effectiveIssueSort, getIssueComparator } from "../../../git/utils/issue
20
20
  import { fromGitHubIssue, fromGitHubIssueOrPullRequestState, fromGitHubMergeQueueEntry, fromGitHubPullRequest, fromGitHubPullRequestLite } from "../models.js";
21
21
  import { githubSearchResultLimit } from "./config.js";
22
22
  import { gitHubIssueSearchRelationships, toGitHubIssueSearchQualifiers, toGitHubIssueSearchScopeQualifiers, toGitHubIssueSearchSlideQualifier, toGitHubIssueSortQualifier } from "./issueSearchQuery.js";
23
+ import { mutateGitHubIssue } from "./issueWrites.js";
23
24
  import { toGitHubPullRequestSearchFacets } from "./pullRequestSearchQuery.js";
24
25
  import * as l10n from "@vscode/l10n";
25
26
  import { GraphqlResponseError, graphql } from "@octokit/graphql";
@@ -1938,6 +1939,12 @@ var GitHubApi = class {
1938
1939
  signal?.addEventListener("abort", onAbort, { once: true });
1939
1940
  });
1940
1941
  }
1942
+ async mutateIssue(provider, token, input) {
1943
+ return mutateGitHubIssue(input, (query, variables) => this.requestWithRetries(() => this.config.wrapForForcedInsecureSSL(provider.getIgnoreSSLErrors(), () => this.getDefaults(token.accessToken, graphql)(query, {
1944
+ ...variables,
1945
+ headers: { "x-github-next-global-id": "1" }
1946
+ })), graphqlReadQueryRegex.test(query), void 0, void 0));
1947
+ }
1941
1948
  _pendingGraphQL = /* @__PURE__ */ new Map();
1942
1949
  async graphql(provider, token, query, variables, scope, cancellation, allowPartialNotFound, gatewayFailures) {
1943
1950
  const { accessToken, ...tokenInfo } = token;