-
Notifications
You must be signed in to change notification settings - Fork 11
Add default changeset configuration to scaffolded projects #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: lirantal <316371+lirantal@users.noreply.github.com>
Co-authored-by: lirantal <316371+lirantal@users.noreply.github.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||
## [2.9.4](v2.9.3...v2.9.4) (2026-01-23) ### Bug Fixes * add default changeset configuration to scaffolded projects ([#41](#41)) ([2cc16c6](2cc16c6))
|
🎉 This PR is included in version 2.9.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Scaffolded projects now include
.changeset/config.jsonwith the repository field populated from the interactiveprojectRepositoryprompt.Changes
Template: Added
.changeset/config.jsonwith standard changeset configuration using@changesets/changelog-githubTemplate function: Added
changesetRepo()helper to extractowner/repofrom GitHub URLs.gitextension, trailing slashes, and query parameters/github\.com\/([^/]+\/[^/.?#]+)/Template integration: Uses SAO templating to populate repo field dynamically:
{ "changelog": [ "@changesets/changelog-github", { "repo": "<%- changesetRepo({ projectRepository }) %>" } ] }Example
When scaffolding with
projectRepository: "https://github.com/user/my-lib":{ "$schema": "https://unpkg.com/@changesets/config/schema.json", "changelog": ["@changesets/changelog-github", { "repo": "user/my-lib" }], "commit": false, "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch" }Original 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.
PR Type
Enhancement
Description
Add
.changeset/config.jsontemplate with dynamic repository configurationImplement
changesetRepo()helper function to extract owner/repo from GitHub URLsAdd comprehensive test coverage for changeset config generation and URL parsing
Support various GitHub URL formats (.git, trailing slashes, query parameters)
Diagram Walkthrough
File Walkthrough
saofile.js
Add changesetRepo helper functionsaofile.js
changesetRepo()template function to extract owner/repo fromGitHub URLs
.gitextension andtrailing slashes
config.json
Create changeset config template filetemplate/.changeset/config.json
repofield using SAO templating syntaxconfiguration options
generator.test.js
Add changeset config generation teststests/generator.test.js
.changeset/config.jsonfile creation.gitextension handling in URLsgracefully