-
Notifications
You must be signed in to change notification settings - Fork 534
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
replace @changesets/cli
with primer-changesets-cli
#3352
Conversation
|
One quick question, how will this impact the generated changelogs that show up under the tags for releases? For example: https://github.com/primer/react/releases/tag/v35.25.1 Will each change end up including the "Changed components" section that is being added to the changeset? |
Yes, that's the idea. Then consumers can use https://github.com/gr2m/primer-release-filter-action to filter out the changelogs to only the parts they are interested in. |
@gr2m would it be possible for the components changed to be metadata that is hidden from things like the release changelog? This would be so that it could still be present and used in tooling but wouldn't impact the existing format that the changesets action generates. Just wanted to ask and see how do-able that seemed to you 👀 |
I don't know how. Do you think the changelogs might become to noisy? Maybe there could be a way to add hidden information to release notes using HTML comments, similar like what is commonly done with issue bodies and comments. But that would require even more changes to the existing flow. I would suggest we go with the changes as they are and iterate if necessary? Worst case we can roll back the changes and try again. Probably the proper way to solve this would be to have separate releases for each component, either with a monorepo setup or with separate repositories (like we do in @octokit), but that would be a bigger undergoing and has its own trade offs. |
@gr2m that was my first thought with the update. I'm not sure how folk would ready it but let me bring this up to the other maintainers to get their take on it! It'd be great if we could make these changes hidden/transparent while we're trying things out in order to avoid changes to existing processes. |
We cannot hide it, it's either we go ahead with it or we don't at this point. |
I have green light for primer/view_components#2038. Can you let me know what you need to make the decision? Or if someone else needs to approve it? |
@gr2m I'd like to check in with the PRC maintainers one more time on this. We'll aim to get back to you by Monday at the latest. |
I'm happy to join that discussion and answer all questions that might be left @lesliecdubs |
@gr2m thanks for joining the PRC maintainers sync on Monday to discuss! Following that and a subsequent discussion I had with @joshblack, we are good to continue forward 👍🏻 As discussed live, expectations for next steps would be:
Let me know if you have any questions or thoughts on any of the above! @primer/react-reviewers could someone in the reviewers group please give this PR a review, with the understanding that we'll treat this as an experiment as described above? |
Have we tried adding the metadata as a comment in the changesets markdown file as a way to hide it from the rendered release notes?
|
No but I can try that out |
This comment was marked as outdated.
This comment was marked as outdated.
I resolved the remaining failing test. Btw Node 17 is no longer maintained since June 1st. You might want to test in 19 and 20 instead: https://nodejs.dev/en/about/releases/ |
Hmm I'm getting all kind of errors now that are unrelated to this pull request, I'll see if I can get around it, but you should do a manual pull request and re-create the lock file, I think you'll have to update snapshots |
This should be ready to be merged, for real this time 🙏🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
This is part of an effort to provide a notification system to users of Primer releases.
To test the new
changeset
CLInpm install
npx changeset
Before this will work, we will need to update https://github.com/primer/.github/blob/main/.github/workflows/release.yml. Turns out the
changesets/action
requires@changesets/cli
to be installed ... so we will need to install it explicitly like it's done in https://github.com/primer/view_components/pull/2038/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34Screenshots
primer-changeset-cli.mov
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.