@botbuddy/cli 1.100.0 → 1.101.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/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/release-notes.mjs +18 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.101.0",
|
|
3
|
+
"source_commit": "fe31848ab60717cd81e7d09194e38557e51697c0",
|
|
4
|
+
"source_sha256": "70d8fef40270425afa97de992ec6631308ccd9b2d7a63a551c8e4f5afd3c1d9c",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "f1c8546000bdf6ebc23a7a36a864f531fd6b45de287ddd87fc09e85309d48ce7"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.101.0",
|
|
3
|
+
"source_commit": "fe31848ab60717cd81e7d09194e38557e51697c0",
|
|
4
|
+
"source_sha256": "70d8fef40270425afa97de992ec6631308ccd9b2d7a63a551c8e4f5afd3c1d9c",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "3a3af0b49e15c90e6d88491c1f0c91e9889f0cddb404121c853348e53fc685a8"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.101.0",
|
|
4
|
+
"source_commit": "fe31848ab60717cd81e7d09194e38557e51697c0",
|
|
5
|
+
"source_sha256": "70d8fef40270425afa97de992ec6631308ccd9b2d7a63a551c8e4f5afd3c1d9c",
|
|
6
6
|
"targets": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"goos": "darwin",
|
|
9
9
|
"goarch": "arm64",
|
|
10
10
|
"binary": "daemon/bin/darwin-arm64/botbuddy-daemon",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "f1c8546000bdf6ebc23a7a36a864f531fd6b45de287ddd87fc09e85309d48ce7",
|
|
12
12
|
"mode": "0755"
|
|
13
13
|
},
|
|
14
14
|
"linux-x64": {
|
|
15
15
|
"goos": "linux",
|
|
16
16
|
"goarch": "amd64",
|
|
17
17
|
"binary": "daemon/bin/linux-x64/botbuddy-daemon",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "3a3af0b49e15c90e6d88491c1f0c91e9889f0cddb404121c853348e53fc685a8",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/release-notes.mjs
CHANGED
|
@@ -60,7 +60,9 @@ customer needs and the receipt prints them (or why they are unavailable).
|
|
|
60
60
|
Each field, with a good and a bad example: docs/release-notes/pack-fields.md.
|
|
61
61
|
|
|
62
62
|
Submitting the same source_key again updates the note and adds a revision.
|
|
63
|
-
An unchanged resubmit (a retry) adds none.
|
|
63
|
+
An unchanged resubmit (a retry) adds none. The receipt and get show the
|
|
64
|
+
binding: the pull request (number, status, merge SHA, URL), or unbound and
|
|
65
|
+
why. A refusal names its code
|
|
64
66
|
(schema_invalid, type_unknown, markup_refused, link_refused,
|
|
65
67
|
entitlement_missing, pack_field_missing) and stores nothing.
|
|
66
68
|
|
|
@@ -217,11 +219,13 @@ export async function cmdReleaseNotes(args, {
|
|
|
217
219
|
const receipt = {
|
|
218
220
|
ok: true, source_key: data.source_key, state: data.state, revision: data.revision, created: data.created === true, changed: data.changed === true, tenant: data.tenant ?? null,
|
|
219
221
|
...(data.customers && typeof data.customers === "object" ? { customers: data.customers } : {}),
|
|
222
|
+
...(isBinding(data.binding) ? { binding: data.binding } : {}),
|
|
220
223
|
};
|
|
221
224
|
if (json) log(JSON.stringify(receipt));
|
|
222
225
|
else {
|
|
223
226
|
const what = receipt.created ? "stored" : receipt.changed ? "updated" : "unchanged (no new revision)";
|
|
224
227
|
log(`Release note ${receipt.source_key} ${what}: state ${receipt.state}, revision ${receipt.revision}${receipt.tenant ? `, tenant ${receipt.tenant}` : ""}.`);
|
|
228
|
+
if (receipt.binding) log(termClean(describeBinding(receipt.binding)));
|
|
225
229
|
if (receipt.customers) log(describeCustomers(receipt.customers));
|
|
226
230
|
}
|
|
227
231
|
return CALL_EXIT.OK;
|
|
@@ -247,6 +251,18 @@ export async function cmdReleaseNotes(args, {
|
|
|
247
251
|
return CALL_EXIT.ERROR;
|
|
248
252
|
}
|
|
249
253
|
|
|
254
|
+
/** BOT-3358: the server's binding is shown as sent; the CLI never derives one. */
|
|
255
|
+
function isBinding(b) {
|
|
256
|
+
return !!b && typeof b === "object" && typeof b.status === "string";
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** BOT-3358: where the note is bound, in one line: the pull request, or unbound and why. */
|
|
260
|
+
export function describeBinding(b) {
|
|
261
|
+
if (b.status === "unbound") return `Binding: unbound. ${b.reason ?? "BotBuddy did not say why."}`;
|
|
262
|
+
const merge = b.merge_sha ? `, merge ${b.merge_sha}` : "";
|
|
263
|
+
return `Binding: PR #${b.pr} (${b.status}${merge}) ${b.url}`;
|
|
264
|
+
}
|
|
265
|
+
|
|
250
266
|
/** BOT-3260: the receipt's derived customers in one line. "none" only when Linear said so. */
|
|
251
267
|
export function describeCustomers(c) {
|
|
252
268
|
const tickets = Array.isArray(c.tickets) && c.tickets.length ? c.tickets.join(", ") : "no linked ticket";
|
|
@@ -764,6 +780,7 @@ async function cmdGet(argv, deps) {
|
|
|
764
780
|
const text = data.text ?? {};
|
|
765
781
|
const links = (list) => (Array.isArray(list) ? list.map((l) => ` - ${l.name} · ${l.url}`) : []);
|
|
766
782
|
const lines = [`${n.source_key} · ${n.type} · ${n.state} · ${revisionsWord(n.revisions)}`];
|
|
783
|
+
if (isBinding(data.binding)) lines.push(describeBinding(data.binding));
|
|
767
784
|
const tags = tagLine(n.tags);
|
|
768
785
|
if (tags) lines.push(`Tags: ${tags}`);
|
|
769
786
|
lines.push("", `Internal: ${n.internal?.title ?? ""}`, text.internal ?? "");
|