dsh-git-badge 0.17.1 → 0.17.2
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 +19 -1
- package/lib/client.js +13 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,22 @@ npm. 0.6.0 is the first release recorded here.
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.17.2] - 2026-09-17
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **The default branch's branch hover no longer says `no pull request`.** The
|
|
18
|
+
always-render merge row (0.17.0) only ever made sense on a feature branch:
|
|
19
|
+
`main` is the base pull requests merge INTO, and none is ever opened FROM it,
|
|
20
|
+
so `no pull request` there read as a nag for something that cannot exist. When
|
|
21
|
+
the node half flags the branch as the default one (`defaultBranch: true`, the
|
|
22
|
+
same flag the action rules use to suppress "open a pull request" on `main`),
|
|
23
|
+
the row now reads `base branch · pull requests merge into this`. Its
|
|
24
|
+
base-relative counts are suppressed there too — `N ahead, M behind main` while
|
|
25
|
+
ON `main` is self-referential, and that divergence is already the chip's own
|
|
26
|
+
`↑a ↓b` token. Feature branches are unchanged: still `no pull request`, still
|
|
27
|
+
the counts when they are known.
|
|
28
|
+
|
|
13
29
|
## [0.17.1] - 2026-09-17
|
|
14
30
|
|
|
15
31
|
### Fixed
|
|
@@ -706,7 +722,9 @@ npm. 0.6.0 is the first release recorded here.
|
|
|
706
722
|
- `detail=1` is annotated as having no consumer yet (the hover card remains
|
|
707
723
|
pending). Its comment previously claimed `log -1` while the code ran `log -3`.
|
|
708
724
|
|
|
709
|
-
[Unreleased]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/compare/v0.17.
|
|
725
|
+
[Unreleased]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/compare/v0.17.2...HEAD
|
|
726
|
+
[0.17.2]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/releases/tag/v0.17.2
|
|
727
|
+
[0.17.1]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/releases/tag/v0.17.1
|
|
710
728
|
[0.17.0]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/releases/tag/v0.17.0
|
|
711
729
|
[0.16.1]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/releases/tag/v0.16.1
|
|
712
730
|
[0.16.0]: https://github.com/Kevin-McIsaac/dsh-workspace-git-badge/releases/tag/v0.16.0
|
package/lib/client.js
CHANGED
|
@@ -892,10 +892,22 @@ window.__ModuleLoader__.load({
|
|
|
892
892
|
} else if (pr.state === "failing") mergeParts.push("blocked: checks failing");
|
|
893
893
|
else if (pr.mergeState === "CLEAN" || (pr.state === "passing" && pr.review === "APPROVED")) mergeParts.push("ready to merge");
|
|
894
894
|
else if (pr.review === "REVIEW_REQUIRED") mergeParts.push("blocked: review required");
|
|
895
|
+
} else if (info?.defaultBranch === true) {
|
|
896
|
+
// The default branch is the BASE, not a branch with a missing PR:
|
|
897
|
+
// pull requests merge INTO it and none is ever opened FROM it, so
|
|
898
|
+
// "no pull request" here reads as a nag for something that cannot
|
|
899
|
+
// exist. The node half computes `defaultBranch` for exactly this
|
|
900
|
+
// suppression (see the comment where it is set in lib/index.js);
|
|
901
|
+
// until now only the action rules consulted it, not this row.
|
|
902
|
+
mergeParts.push("base branch \u00B7 pull requests merge into this");
|
|
895
903
|
} else {
|
|
896
904
|
mergeParts.push("no pull request");
|
|
897
905
|
}
|
|
898
|
-
|
|
906
|
+
// The counts are this branch's standing against its BASE, so on the
|
|
907
|
+
// base itself they are self-referential ("N ahead, M behind main" while
|
|
908
|
+
// ON main) and the divergence they would state is already the chip's own
|
|
909
|
+
// \u2191a \u2193b token. Suppress them on the default branch, with or without a PR.
|
|
910
|
+
if (info?.defaultBranch !== true && (info?.mainAhead !== void 0 || info?.mainBehind !== void 0)) {
|
|
899
911
|
mergeParts.push((info.mainAhead || 0) + " ahead, " + (info.mainBehind || 0) + " behind main");
|
|
900
912
|
}
|
|
901
913
|
add("merge", mergeParts.join(" \u00B7 "));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-git-badge",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "Git status badges for DeepSeek Harness: an input-row chip on every install, plus sidebar session-row badges (git status, PR/CI action tokens) after one manual step: `npx dsh-git-badge apply`, then restart dsh web. Event-driven freshness over SSE.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|