@gitkraken/core-gitlens 0.38.4 → 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 (41) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/git-cli/exec/git.d.ts +21 -0
  3. package/dist/git-cli/exec/git.js +21 -0
  4. package/dist/git-cli/exec/git.js.map +1 -1
  5. package/dist/git-cli/providers/branches.js +13 -6
  6. package/dist/git-cli/providers/branches.js.map +1 -1
  7. package/dist/git-cli/providers/remotes.js +1 -1
  8. package/dist/git-cli/providers/remotes.js.map +1 -1
  9. package/dist/plus/git-github/api/github.d.ts +4 -0
  10. package/dist/plus/git-github/api/github.js +7 -0
  11. package/dist/plus/git-github/api/github.js.map +1 -1
  12. package/dist/plus/git-github/api/issueWrites.d.ts +51 -0
  13. package/dist/plus/git-github/api/issueWrites.js +192 -0
  14. package/dist/plus/git-github/api/issueWrites.js.map +1 -0
  15. package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +7 -8
  16. package/dist/plus/integrations/authentication/rejectedTokenTracker.js +7 -8
  17. package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
  18. package/dist/plus/integrations/index.d.ts +3 -2
  19. package/dist/plus/integrations/index.js.map +1 -1
  20. package/dist/plus/integrations/integrationService.d.ts +7 -1
  21. package/dist/plus/integrations/integrationService.js +37 -0
  22. package/dist/plus/integrations/integrationService.js.map +1 -1
  23. package/dist/plus/integrations/manager.d.ts +9 -0
  24. package/dist/plus/integrations/models/integration.d.ts +6 -4
  25. package/dist/plus/integrations/models/integration.js +15 -9
  26. package/dist/plus/integrations/models/integration.js.map +1 -1
  27. package/dist/plus/integrations/providers/asana.d.ts +4 -5
  28. package/dist/plus/integrations/providers/asana.js +53 -12
  29. package/dist/plus/integrations/providers/asana.js.map +1 -1
  30. package/dist/plus/integrations/providers/github.d.ts +5 -1
  31. package/dist/plus/integrations/providers/github.js +25 -0
  32. package/dist/plus/integrations/providers/github.js.map +1 -1
  33. package/dist/plus/integrations/providers/linear.js +6 -6
  34. package/dist/plus/integrations/providers/linear.js.map +1 -1
  35. package/dist/plus/integrations/providers/models.d.ts +6 -15
  36. package/dist/plus/integrations/providers/models.js +1 -1
  37. package/dist/plus/integrations/providers/models.js.map +1 -1
  38. package/dist/plus/integrations/providers/providersApi.d.ts +1 -6
  39. package/dist/plus/integrations/providers/providersApi.js.map +1 -1
  40. package/docs/integrations.md +19 -0
  41. package/package.json +2 -2
@@ -658,6 +658,25 @@ What holds for all of them:
658
658
  - An Asana task's tags are its labels and its likes, a thumbs-up on the task, its reactions. Its comments are stories, which a task doesn't
659
659
  count, so reading them would cost a request per task. Asana has no batch read.
660
660
 
661
+ ### GitHub.com issue writes
662
+
663
+ Use the selected GitHub connection ID from `getConfigured()` together with `providerId`, `owner`, and `repo`.
664
+ Core resolves the repository and issue with that account before sending the mutation to GitHub. Issue numbers
665
+ are scoped to their repository. For an existing issue, pass its `number` and the `expectedNodeId` from the
666
+ issue read. Core verifies that the node still belongs to the requested repository and number.
667
+
668
+ | Method | Operation |
669
+ | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
670
+ | `writeIssue` | Pass `action: 'create'` with a `title` and an optional `body`. |
671
+ | `writeIssue` | Pass `action: 'edit'` with at least one of `title` or `body`. An empty body clears the description. |
672
+ | `writeIssue` | Pass `action: 'set-state'`. Use `state: 'open'` to reopen, or `state: 'closed'` with `reason: 'completed'` or `'not_planned'`. |
673
+ | `deleteIssue` | Permanently delete the issue if GitHub grants the selected account permission. Obtain confirmation in the calling UI before invoking it. |
674
+
675
+ An `IssueWriteResult` with `ok: true` contains the canonical owner, repository, issue number, node ID, URL,
676
+ title, body, and state. Deletion returns the issue snapshot from before removal. An `ok: false` result contains
677
+ a typed reason. GitHub can report inaccessible private resources as `not-found`. Check GitHub before retrying
678
+ an `unknown` result, since GitHub may have applied the mutation before the response was lost.
679
+
661
680
  ## 5. Paging
662
681
 
663
682
  Two mechanisms live behind one shape, and they are **not** interchangeable:
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.38.4",
4
+ "version": "0.40.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.67.0",
262
+ "@gitkraken/provider-apis": "0.69.0",
263
263
  "@octokit/graphql": "9.0.4",
264
264
  "@octokit/request": "10.0.14",
265
265
  "@octokit/request-error": "7.1.1",