@botbuddy/cli 1.102.0 → 1.103.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 +17 -6
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.103.0",
|
|
3
|
+
"source_commit": "b128d7aba280f74dac8bf98419e16d0c57acb442",
|
|
4
|
+
"source_sha256": "5c94b86ddcee3718e16a7b93533fb30be5567a029264d27fb9a2825fe4c5b2ab",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "d6e34d2cae784fd188320dfc25d0f3700627d8f9666571deee5b1ee55950bb15"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.103.0",
|
|
3
|
+
"source_commit": "b128d7aba280f74dac8bf98419e16d0c57acb442",
|
|
4
|
+
"source_sha256": "5c94b86ddcee3718e16a7b93533fb30be5567a029264d27fb9a2825fe4c5b2ab",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "81c5e1a2754c7b5398c451d5acef5976018198bc38a4ab2acd4c229b9f1a5506"
|
|
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.103.0",
|
|
4
|
+
"source_commit": "b128d7aba280f74dac8bf98419e16d0c57acb442",
|
|
5
|
+
"source_sha256": "5c94b86ddcee3718e16a7b93533fb30be5567a029264d27fb9a2825fe4c5b2ab",
|
|
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": "d6e34d2cae784fd188320dfc25d0f3700627d8f9666571deee5b1ee55950bb15",
|
|
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": "81c5e1a2754c7b5398c451d5acef5976018198bc38a4ab2acd4c229b9f1a5506",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/release-notes.mjs
CHANGED
|
@@ -13,7 +13,8 @@ export const RELEASE_NOTES_USAGE = `Usage: bb release-notes submit <note.json> [
|
|
|
13
13
|
bb release-notes withdraw <source_key> [--tenant <slug>] [--json]
|
|
14
14
|
bb release-notes list [--tag <group>=<value>]... [--type <type>] [--state <state>] [--cursor <cursor>] [--json]
|
|
15
15
|
bb release-notes get <source_key> [--json]
|
|
16
|
-
bb release-notes digest --release <version|run-id> --voice internal|external [--environment production|staging] [--format markdown|json|slack] [--repository owner/name] [--json]
|
|
16
|
+
bb release-notes digest --release <version|run-id> --voice internal|external [--environment production|staging] [--format markdown|json|slack|discord|github-release] [--repository owner/name] [--json]
|
|
17
|
+
bb release-notes digest --candidate <sha> --repository owner/name --voice internal [--format …] [--json]
|
|
17
18
|
bb release-notes pack --release <version> [--format md] [--customer <name>] [--repository owner/name] [--out <file>] [--json]
|
|
18
19
|
bb release-notes grants list [--tenant <slug>] [--json]
|
|
19
20
|
bb release-notes grants add <email> <submit|manage> [--tenant <slug>] [--json]
|
|
@@ -109,18 +110,27 @@ view --show shows the tag and its filter, --tag-only the tag, --hide neither.
|
|
|
109
110
|
Digest (BOT-3204). digest prints one production release's notes, exactly as
|
|
110
111
|
the API returns them (byte for byte when piped; on a terminal, control
|
|
111
112
|
characters print as visible escapes): markdown, json (the bbrn-digest-1
|
|
112
|
-
schema)
|
|
113
|
-
your own incoming webhook; BotBuddy posts nothing)
|
|
113
|
+
schema), slack ({"messages": [...]}: each message is a Block Kit payload for
|
|
114
|
+
your own incoming webhook; BotBuddy posts nothing), discord (one embed field
|
|
115
|
+
value, at most 1,024 characters) or github-release (a GitHub release body under
|
|
116
|
+
6,000 characters, with no heading). discord and github-release need voice
|
|
117
|
+
internal. Every internal format links to the release's notes in BotBuddy, and
|
|
118
|
+
every format is rendered by the same renderer, so a PR line reads the same in
|
|
119
|
+
all of them. voice internal is your
|
|
114
120
|
team's wording with source keys and pull requests; voice external holds only
|
|
115
121
|
published external wording and never falls back to internal text. A release
|
|
116
122
|
with no notes prints an explicit empty digest. The internal voice also lists
|
|
117
123
|
every merged pull request in the release (BOT-3342), noted or not, with its
|
|
118
124
|
tickets, project and % complete and agent. --environment staging names a
|
|
119
125
|
staging deployment by its workflow run id or commit SHA (default production).
|
|
126
|
+
--candidate <sha> (with --repository) reads a production candidate: from the
|
|
127
|
+
last production release BotBuddy recorded for that repository to the commit.
|
|
120
128
|
--json prints the whole answer (tenant, version, note_count, pr_count,
|
|
121
129
|
content_type, body). Refusals: release_unknown,
|
|
122
130
|
repository_required, release_not_shipped, no_previous_release,
|
|
123
|
-
release_range_unavailable,
|
|
131
|
+
release_range_unavailable, candidate_base_unknown (no production release is
|
|
132
|
+
recorded, so nothing is guessed), candidate_not_descendant,
|
|
133
|
+
release_notes_url_unavailable, entitlement_missing, scope_missing.
|
|
124
134
|
|
|
125
135
|
Pack (BOT-3261). pack prints the internal release pack for one production
|
|
126
136
|
release as Markdown: a cover section with counts and affected customers, release
|
|
@@ -557,7 +567,7 @@ async function cmdPublish(action, argv, { resolveAuth, call, log, errorLog }) {
|
|
|
557
567
|
// ── BOT-3204: bb release-notes digest ─────────────────────────────────
|
|
558
568
|
|
|
559
569
|
const DIGEST_TOOL = "get_release_note_digest";
|
|
560
|
-
const DIGEST_FLAGS = { "--release": "release", "--environment": "environment", "--voice": "voice", "--format": "format", "--repository": "repository" };
|
|
570
|
+
const DIGEST_FLAGS = { "--release": "release", "--candidate": "candidate", "--environment": "environment", "--voice": "voice", "--format": "format", "--repository": "repository" };
|
|
561
571
|
|
|
562
572
|
export async function cmdDigest(argv, { resolveAuth, call, log, errorLog, write, isTTY = false }) {
|
|
563
573
|
const json = argv.includes("--json");
|
|
@@ -574,7 +584,8 @@ export async function cmdDigest(argv, { resolveAuth, call, log, errorLog, write,
|
|
|
574
584
|
args[key] = v;
|
|
575
585
|
i++;
|
|
576
586
|
}
|
|
577
|
-
|
|
587
|
+
// BOT-3427: exactly one of a release and a candidate commit.
|
|
588
|
+
if (!args.voice || Boolean(args.release) === Boolean(args.candidate)) {
|
|
578
589
|
errorLog(RELEASE_NOTES_USAGE);
|
|
579
590
|
return 2;
|
|
580
591
|
}
|