@gitkraken/core-gitlens 0.29.0 → 0.31.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 +33 -1
- package/dist/git/cache.d.ts +39 -1
- package/dist/git/cache.js +108 -7
- package/dist/git/cache.js.map +1 -1
- package/dist/git/models/issue.d.ts +3 -2
- package/dist/git/models/issue.js +3 -1
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +21 -0
- package/dist/git/models/pullRequest.d.ts +7 -3
- package/dist/git/models/pullRequest.js +3 -1
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/utils/issue.utils.js +3 -1
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +12 -1
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.js +2 -0
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/watching/worktreeSummary.d.ts +16 -7
- package/dist/git/watching/worktreeSummary.js +44 -14
- package/dist/git/watching/worktreeSummary.js.map +1 -1
- package/dist/git-cli/exec/gitDirResolver.d.ts +6 -1
- package/dist/git-cli/exec/gitDirResolver.js +9 -4
- package/dist/git-cli/exec/gitDirResolver.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +9 -0
- package/dist/git-cli/providers/branches.js +183 -105
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/config.js +1 -1
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/plus/git-github/api/github.js +16 -0
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +12 -0
- package/dist/plus/git-github/models.js +14 -3
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/integrations/fieldPresence.d.ts +6 -2
- package/dist/plus/integrations/fieldPresence.js +47 -16
- package/dist/plus/integrations/fieldPresence.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.js +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +1 -0
- package/dist/plus/integrations/providers/gitlab/models.js +8 -6
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/models.js +18 -3
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequestBranches.d.ts +2 -1
- package/dist/plus/integrations/reads/pullRequestBranches.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.js +3 -2
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +8 -3
- package/dist/plus/integrations/results.js.map +1 -1
- package/docs/integrations.md +28 -7
- package/package.json +1 -1
package/docs/integrations.md
CHANGED
|
@@ -198,7 +198,9 @@ before any target was read.
|
|
|
198
198
|
|
|
199
199
|
The hosts with a cheap check select only the change state:
|
|
200
200
|
|
|
201
|
-
- **GitHub/GHE:** one aliased document per 25 targets, like the full read.
|
|
201
|
+
- **GitHub/GHE:** one aliased document per 25 targets, like the full read. Assigning or clearing a milestone moves
|
|
202
|
+
the update time, so the etag sees it; editing the milestone itself (its title, due date or state) doesn't, and a row
|
|
203
|
+
that compares unchanged keeps the milestone as it was read.
|
|
202
204
|
- **GitLab and GitLab self-managed:** one query per project per 100 iids. That drops to 10 iids when `etagIncludes`
|
|
203
205
|
has `'checks'`, because GitLab resolves every job of each head pipeline for that input. GitLab resets a merge
|
|
204
206
|
request's merge status whenever its target branch moves, so on a busy repository `'mergeable'` changes, and costs a
|
|
@@ -257,7 +259,8 @@ refused; any other failure of it is left to the full reads, so a call counts at
|
|
|
257
259
|
`getPullRequestsForBranches` answers "which pull requests have this branch as their head" without the user's
|
|
258
260
|
relationship to them, so unlike the sweeps it finds a teammate's pull request from the user's branch. A target names
|
|
259
261
|
the repository the pull requests are opened against, the branch's short name and, for a branch in a fork,
|
|
260
|
-
`headOwner`; one equal to the target's owner means the base repository.
|
|
262
|
+
`headOwner`; one equal to the target's owner means the base repository. On GitLab both are the whole namespace path
|
|
263
|
+
(`group/subgroup`). A pull request matches only when its head
|
|
261
264
|
repository is that base repository or that fork, so a `main` never claims every fork's `main`. The match is on the
|
|
262
265
|
head branch name in every state, so a merged pull request whose branch was deleted is still found, and a fork is
|
|
263
266
|
matched by its owner, so a pull request whose fork was deleted still matches that `headOwner`. Each target returns up
|
|
@@ -338,10 +341,11 @@ A group is `fetched` only if every field in it is. Pull request groups: `descrip
|
|
|
338
341
|
reads, and is `undefined` elsewhere), `reviewDecision`, `assignees`, `checks` (`statusCheckRollupState`), `mergeable`
|
|
339
342
|
(`mergeableState`), `diffStats` (`additions`, `deletions`, `filesChanged`), `commitCount`, `comments` (`commentsCount`),
|
|
340
343
|
`reactions` (`thumbsUpCount`), `access` (`viewerCanUpdate` and `repository.accessLevel`), `authoredByMe` (with `viewer`,
|
|
341
|
-
the identity it was matched against) and `
|
|
342
|
-
the `PullRequest` class every row is, not on the `PullRequestShape` type. Issue groups:
|
|
343
|
-
`bodyField` where the provider sets it, so take both from the same row), `assignees`,
|
|
344
|
-
(`commentsCount`), `reactions` (`thumbsUpCount`)
|
|
344
|
+
the identity it was matched against), `stack` and `milestone`. `statusCheckRollupState`, `commitCount` and
|
|
345
|
+
`viewerCanUpdate` live on the `PullRequest` class every row is, not on the `PullRequestShape` type. Issue groups:
|
|
346
|
+
`description` (`body`, and `bodyField` where the provider sets it, so take both from the same row), `assignees`,
|
|
347
|
+
`labels`, `comments` (`commentsCount`), `reactions` (`thumbsUpCount`), `access` (`repository.accessLevel`) and
|
|
348
|
+
`milestone` (on Linear, the issue's project milestone).
|
|
345
349
|
|
|
346
350
|
Each table below covers a cloud host and its self-managed variant: where a cell reads `cloud / self-managed` the two
|
|
347
351
|
differ, and `—` means that host never produces the tag.
|
|
@@ -366,6 +370,7 @@ differ, and `—` means that host never produces the tag.
|
|
|
366
370
|
| access | not-requested | fetched | not-requested | fetched | fetched | not-requested | not-requested | not-requested | fetched |
|
|
367
371
|
| authoredByMe | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
368
372
|
| stack | fetched / unavailable | fetched / unavailable | fetched / unavailable | fetched / unavailable | fetched / unavailable | fetched / unavailable | not-requested | not-requested | fetched / unavailable |
|
|
373
|
+
| milestone | fetched | fetched | fetched | fetched | fetched | fetched | fetched | fetched | fetched |
|
|
369
374
|
|
|
370
375
|
<!-- field-presence: issues -->
|
|
371
376
|
|
|
@@ -377,6 +382,7 @@ differ, and `—` means that host never produces the tag.
|
|
|
377
382
|
| comments | fetched | fetched | fetched | fetched | fetched |
|
|
378
383
|
| reactions | fetched | fetched | fetched | fetched | fetched |
|
|
379
384
|
| access | fetched | fetched | fetched | not-requested | fetched |
|
|
385
|
+
| milestone | fetched | fetched | fetched | fetched | fetched |
|
|
380
386
|
|
|
381
387
|
The cells that aren't obvious from the projection names:
|
|
382
388
|
|
|
@@ -431,6 +437,7 @@ What holds for all of them:
|
|
|
431
437
|
| access | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
432
438
|
| authoredByMe | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
433
439
|
| stack | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
|
|
440
|
+
| milestone | not-requested | fetched | not-requested | fetched | fetched | fetched | fetched | fetched |
|
|
434
441
|
|
|
435
442
|
<!-- field-presence: gitlab-issues -->
|
|
436
443
|
|
|
@@ -442,6 +449,7 @@ What holds for all of them:
|
|
|
442
449
|
| comments | fetched / not-requested | fetched | fetched / not-requested | fetched / not-requested |
|
|
443
450
|
| reactions | fetched | fetched | fetched | fetched |
|
|
444
451
|
| access | not-requested | not-requested | not-requested | not-requested |
|
|
452
|
+
| milestone | fetched | not-requested | fetched | fetched |
|
|
445
453
|
|
|
446
454
|
- The point reads and the free-text search are GitLens' own, and leave everything but the merge request's identity,
|
|
447
455
|
refs and dates off the row, including the description they select. Every other read is provider-apis'.
|
|
@@ -449,6 +457,9 @@ What holds for all of them:
|
|
|
449
457
|
count nullable, so diff stats and commit counts are never `fetched`. GitLab.com's comment count resolver answers 0
|
|
450
458
|
rather than null, so its comment count is; a self-managed version's isn't known to. The account-wide issue read is
|
|
451
459
|
REST, whose comment count is always a number.
|
|
460
|
+
- The account-wide issue read's REST normalizer drops the milestone the response carries, so `milestone` is
|
|
461
|
+
`not-requested` on `account`, though the host's "my issues" read, which shares the tag, reads it over GraphQL. It is
|
|
462
|
+
also `not-requested` on GitLens' own merge request reads.
|
|
452
463
|
|
|
453
464
|
<!-- field-presence: azure-pull-requests -->
|
|
454
465
|
|
|
@@ -468,6 +479,7 @@ What holds for all of them:
|
|
|
468
479
|
| access | not-requested | not-requested | — / not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
469
480
|
| authoredByMe | not-requested | not-requested | — / not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
470
481
|
| stack | unavailable | unavailable | — / unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
|
|
482
|
+
| milestone | unavailable | unavailable | — / unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
|
|
471
483
|
|
|
472
484
|
<!-- field-presence: azure-issues -->
|
|
473
485
|
|
|
@@ -479,6 +491,7 @@ What holds for all of them:
|
|
|
479
491
|
| comments | fetched | — / fetched | fetched | fetched | fetched |
|
|
480
492
|
| reactions | unavailable | — / unavailable | unavailable | unavailable | unavailable |
|
|
481
493
|
| access | unavailable | — / unavailable | unavailable | unavailable | unavailable |
|
|
494
|
+
| milestone | unavailable | — / unavailable | unavailable | unavailable | unavailable |
|
|
482
495
|
|
|
483
496
|
- Azure truncates the description of a pull request it lists (to 400 characters), so only the batch reads, which
|
|
484
497
|
fetch each pull request by id, have it. GitLens' own point reads leave it off the row.
|
|
@@ -503,6 +516,7 @@ What holds for all of them:
|
|
|
503
516
|
| access | not-requested | not-requested | — / not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
504
517
|
| authoredByMe | not-requested | not-requested | — / not-requested | not-requested | not-requested | not-requested | not-requested | not-requested | not-requested |
|
|
505
518
|
| stack | unavailable | unavailable | — / unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
|
|
519
|
+
| milestone | unavailable | unavailable | — / unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
|
|
506
520
|
|
|
507
521
|
<!-- field-presence: bitbucket-issues -->
|
|
508
522
|
|
|
@@ -514,6 +528,7 @@ What holds for all of them:
|
|
|
514
528
|
| comments | not-requested | not-requested |
|
|
515
529
|
| reactions | unavailable | unavailable |
|
|
516
530
|
| access | not-requested | not-requested |
|
|
531
|
+
| milestone | unavailable | unavailable |
|
|
517
532
|
|
|
518
533
|
- Bitbucket Cloud's point and batch reads are GitLens' own, which drop the comment count. The point read for a commit
|
|
519
534
|
selects `+values.*`, which isn't known to bring the participants the reviews come from as the other point reads'
|
|
@@ -533,6 +548,7 @@ What holds for all of them:
|
|
|
533
548
|
| comments | not-requested | not-requested | not-requested | fetched / not-requested |
|
|
534
549
|
| reactions | unavailable | unavailable | unavailable | unavailable |
|
|
535
550
|
| access | unavailable | unavailable | unavailable | unavailable |
|
|
551
|
+
| milestone | unavailable | unavailable | unavailable | unavailable |
|
|
536
552
|
|
|
537
553
|
<!-- field-presence: linear-issues -->
|
|
538
554
|
|
|
@@ -544,6 +560,7 @@ What holds for all of them:
|
|
|
544
560
|
| comments | not-requested | not-requested | not-requested | not-requested |
|
|
545
561
|
| reactions | not-requested | not-requested | not-requested | not-requested |
|
|
546
562
|
| access | unavailable | unavailable | unavailable | unavailable |
|
|
563
|
+
| milestone | fetched | fetched | fetched | fetched |
|
|
547
564
|
|
|
548
565
|
<!-- field-presence: trello-issues -->
|
|
549
566
|
|
|
@@ -555,6 +572,7 @@ What holds for all of them:
|
|
|
555
572
|
| comments | fetched | fetched |
|
|
556
573
|
| reactions | unavailable | unavailable |
|
|
557
574
|
| access | unavailable | unavailable |
|
|
575
|
+
| milestone | unavailable | unavailable |
|
|
558
576
|
|
|
559
577
|
<!-- field-presence: asana-issues -->
|
|
560
578
|
|
|
@@ -566,6 +584,7 @@ What holds for all of them:
|
|
|
566
584
|
| comments | not-requested | not-requested | not-requested |
|
|
567
585
|
| reactions | fetched | fetched | fetched |
|
|
568
586
|
| access | unavailable | unavailable | unavailable |
|
|
587
|
+
| milestone | unavailable | unavailable | unavailable |
|
|
569
588
|
|
|
570
589
|
- Tracker issues belong to no repository, so `access` is `unavailable`.
|
|
571
590
|
- provider-apis' Jira converter counts the comments embedded in the issue rather than reading their total, so only
|
|
@@ -1095,7 +1114,9 @@ one.
|
|
|
1095
1114
|
`resolveRepository` reports through `resolution.status` instead: `resolved` · `not-found` · `unauthorized` ·
|
|
1096
1115
|
`unsupported-provider` · `invalid-remote-url` · `host-mismatch` · `undetermined`. A `resolved` identity
|
|
1097
1116
|
carries the provider's **canonical** owner/name plus `renamed: true` when the local remote is stale (on Azure DevOps,
|
|
1098
|
-
when the repository or its project is named differently from where it was read).
|
|
1117
|
+
when the repository or its project is named differently from where it was read). Owner and name are compared as one
|
|
1118
|
+
path, because the remote and the provider split a GitLab nested group differently. GitLab's lookup doesn't follow a
|
|
1119
|
+
renamed or moved path, so a stale GitLab remote is `not-found` rather than `renamed`.
|
|
1099
1120
|
It also carries `isFork` and `parent` (the repository a fork was made from, on the same host; `project` only on Azure
|
|
1100
1121
|
DevOps) for GitHub, GitHub Enterprise, Bitbucket Cloud, Bitbucket Data Center, Azure DevOps and gitlab.com, where a
|
|
1101
1122
|
nested group is part of the owner (`group/subgroup`). Self-managed GitLab reports neither, because the field that names
|
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.31.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "GitKraken",
|