Skip to content

Commit 4753f05

Browse files
blafourcadeclaude
andauthored
chore: carry the video programme in the release video text (#1094)
The announcements on Discord and Skool are built from what the video shows. release-video.json already held the programme as description text; it now also holds the themes and the programme as data. Claude-Session: https://claude.ai/code/session_019tw8HkVy69fuukqR971Roz Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent bf23db6 commit 4753f05

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎.claude/skills/release-video/assets/youtube-metadata.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env node
22
/**
3-
* The YouTube title and description of the release video, in the layout of the published ones:
3+
* The YouTube title and description of the release video, in the layout of the published ones, with the
4+
* themes and the programme they are built from, which the announcements are built from too:
45
* `node .claude/skills/release-video/assets/youtube-metadata.js --version 5.13 --tag v5.13.0 --repo <owner/repo> [--out release-video.json]`.
56
*/
67
const fs = require("node:fs");
@@ -28,7 +29,8 @@ function youtubeMetadata(plan, { version, tag, repo }) {
2829
];
2930
if (contributors) lines.push(`Version livrée par ${contributors} contributeurs (crédits dans les notes de version).`, "");
3031
lines.push(`Notes de version : https://github.com/${repo}/releases/tag/${tag}`, `Code source : https://github.com/${repo}`);
31-
return { title: titleOf(plan, version), description: lines.join("\n") };
32+
const { themes, programme } = plan.youtube;
33+
return { title: titleOf(plan, version), description: lines.join("\n"), themes, programme };
3234
}
3335

3436
/** What a plan lacks to be published: the block, a title that fits, a line for every scene's surface. */

‎scripts/__tests__/youtube-metadata.test.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ test("the description follows the published layout, with commands, contributors
5050
);
5151
});
5252

53+
test("the themes and the programme travel with the text, so an announcement can be built from the video", () => {
54+
const metadata = youtubeMetadata(plan, context);
55+
56+
assert.deepEqual(metadata.themes, plan.youtube.themes);
57+
assert.deepEqual(metadata.programme, plan.youtube.programme);
58+
});
59+
5360
test("a plugin skill is written as a slash command and a CLI command is left as it is", () => {
5461
const { description } = youtubeMetadata(plan, context);
5562

0 commit comments

Comments
 (0)