feat: release notes

Each release can carry notes in Markdown, written before or after it
ships. A draft is generated from its finished tickets grouped by type, to
edit and copy from the releases page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 15:19:23 +02:00
parent 45a3dc1e16
commit 24b37b6628
40 changed files with 1251 additions and 31 deletions

View File

@@ -10,6 +10,8 @@ import { CommandResult } from './commands/command-result';
import { CreateReleaseCommand } from './commands/create-release.command';
import { PublishReleaseCommand } from './commands/publish-release.command';
import { UpdateReleaseCommand } from './commands/update-release.command';
import { WriteReleaseNotesCommand } from './commands/write-release-notes.command';
import { GetReleaseNotesDraftQuery } from './queries/get-release-notes-draft.query';
import { GetReleaseProgressQuery } from './queries/get-release-progress.query';
import { GetReleaseQuery } from './queries/get-release.query';
import { GetUpcomingReleasesQuery } from './queries/get-upcoming-releases.query';
@@ -82,6 +84,24 @@ export class ReleasesService {
return this.queryBus.execute(new GetUpcomingReleasesQuery(viewerId, limit));
}
/** Writes the notes (null removes them); also after the release ships. */
writeNotes(
actorId: string,
releaseId: string,
notes: string | null,
): Promise<CommandResult> {
return this.commandBus.execute(
new WriteReleaseNotesCommand(actorId, releaseId, notes),
);
}
/** A Markdown draft from the release's finished tickets (not saved). */
notesDraft(viewerId: string | null, releaseId: string): Promise<string> {
return this.queryBus.execute(
new GetReleaseNotesDraftQuery(viewerId, releaseId),
);
}
progress(
viewerId: string | null,
releaseId: string,