feat: add confirmation prompt and allow patch releases without changesets#1540
Closed
feat: add confirmation prompt and allow patch releases without changesets#1540
Conversation
…sets - Added user confirmation prompt using Node.js readline module - Allow patch releases without changesets (defaults to patch when no changesets) - Prevent non-patch releases without changesets - Made runRelease and main functions async to support prompts Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Document confirmation prompt feature - Document patch releases without changesets - Update release workflow section - Update features list Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Collaborator
|
@copilot merge main and make sure there is not duplicate features in the script |
Copilot
AI
changed the title
[WIP] Update changeset script to allow patch releases and confirm version
feat: add confirmation prompt and allow patch releases without changesets
Oct 11, 2025
Resolved merge conflict by keeping the improved implementation: - Single promptConfirmation function with readline imported at top - Confirmation prompt BEFORE any file changes (not after) - Support for patch releases without changesets preserved - No duplicate code or redundant prompts Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Merged main and resolved conflicts in commit 946ea0e. Key changes:
|
pelikhan
approved these changes
Oct 11, 2025
Relocated the changeset documentation to be co-located with the changeset.js script in the scripts directory. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Moved in commit that will be pushed with progress report. The file has been relocated from |
Collaborator
|
@copilot merge main |
Merged latest changes from main including: - Documentation updates - CLI version checker workflow enhancements - Schema updates Resolved merge conflict in scripts/changeset.js by keeping this PR's superior implementation: - Confirmation prompt BEFORE file changes (not after) - Support for patch releases without changesets - No duplicate code Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Collaborator
|
@copilot merge main |
Merged latest changes from main including: - Documentation tweaks and improvements across multiple files - File reorganization (custom-safe-outputs moved to guides) - New documentation files added Resolved merge conflicts: - scripts/changeset.js: Kept this PR's implementation (confirmation before file changes) - Documentation files: Accepted main's updated versions - All features preserved, no duplicate code Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Collaborator
|
@copilot merge main, recompile |
Merged latest changes from main including: - New changesets for recent features - GitHub Copilot agent setup workflow - Cache-memory and PR conflict checking in unbloat-docs - Heredoc delimiter fix for GitHub Actions expressions - Various workflow improvements and updates Resolved merge conflicts: - scripts/changeset.js: Kept this PR's implementation (confirmation before file changes) - docs/src/content/docs/reference/triggers.md: Accepted main's version Recompiled all workflows: - Successfully recompiled 64 workflow files - All workflows validated against GitHub Actions schema - Updated .gitattributes for generated files Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update changeset script with patch release and confirmation features
Summary
Updated the changeset script to add two key features requested in the issue:
Note: Main branch also added a confirmation feature, but this PR provides a better implementation that asks for confirmation BEFORE making any file changes (main's version asked AFTER modifying CHANGELOG and deleting changesets).
Changes Made
1. User Confirmation Prompt
readlinemodule import (built-in Node.js)promptConfirmation()async function that prompts with "(y/N)"runRelease()to be async and call confirmation before making any file changesmain()to be async to support the async runRelease call2. Patch Releases Without Changesets
.changeset/directory is empty--allow-emptyflag for git commits when no changesets present3. Merged with Main Branch (Multiple Times)
promptConfirmationfunction4. Documentation Updates
5. Workflow Recompilation
Testing
✓ All manual tests passing
✓ Help command works correctly
✓ Version command with/without changesets
✓ Logic correctly defaults to patch for no changesets
✓ Logic correctly prevents minor/major without changesets
✓ Confirmation prompt works with readline module
✓ No duplicate functions after merges
✓ All workflows recompiled successfully
Checklist
runRelease()to allow patch releases without changeset filesreadlinemodule for user inputOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.