Skip to content

Commit 58ba00e

Browse files
committed
Link each changeset entry to its diff in the version PR body
Each changeset summary bullet now includes a (changeset) link that jumps to the deleted .bumpy/<id>.md file diff in the PR.
1 parent 5992d15 commit 58ba00e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/bumpy/src/commands

packages/bumpy/src/commands/ci.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,9 @@ function formatVersionPrBody(plan: ReleasePlan, preamble: string, packageDirs: M
488488
if (relevantChangesets.length > 0) {
489489
for (const cs of relevantChangesets) {
490490
if (cs.summary) {
491+
const csLink = ` ([changeset](#diff-${sha256Hex(`.bumpy/${cs.id}.md`)}))`;
491492
const summaryLines = cs.summary.split('\n');
492-
lines.push(`- ${summaryLines[0]}`);
493+
lines.push(`- ${summaryLines[0]}${csLink}`);
493494
for (let i = 1; i < summaryLines.length; i++) {
494495
if (summaryLines[i]!.trim()) {
495496
lines.push(` ${summaryLines[i]}`);

0 commit comments

Comments
 (0)