Skip to content

Commit ff4ebbf

Browse files
jeffhandleyCopilot
andcommitted
Require diff confirmation before overwriting published release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3bd2da4 commit ff4ebbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/skills/release-notes/references/formatting.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ When the user requests changes to existing release notes:
2121

2222
1. Fetch the current release body
2323
2. Write the **entire** corrected body to a local file (ensuring proper line breaks between all sections, entries, and paragraphs)
24-
3. Upload the complete file using `gh release edit --notes-file <file>`
25-
4. Verify the result by fetching the body again and checking that line count and structure are intact
24+
3. **If the release is already published** (not a draft): save the original body to a local file, show the user a diff between the original and updated body, and require explicit confirmation before uploading
25+
4. Upload the complete file using `gh release edit --notes-file <file>`
26+
5. Verify the result by fetching the body again and checking that line count and structure are intact
2627

2728
### Common Pitfalls
2829

0 commit comments

Comments
 (0)