Skip to content
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

Update changeset guidelines #4510

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

AdrianContiu
Copy link
Contributor

@AdrianContiu AdrianContiu commented Aug 27, 2024

[FX-NNNN]

Description

Update changeset guidelines to include a reference to '@toptal/picasso': patch for major bumps.

How to test

  • Temploy
  • FIXME: Add the steps describing how to verify your changes

Screenshots

Before. After.
Insert screenshots or screen recordings Insert screenshots or screen recordings

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

  • @toptal-bot run package:alpha-release - Release alpha version
  • @toptal-anvil ping reviewers - Ping FX team for review
PR Review Guidelines

When to approve? ✅

You are OK with merging this PR and

  1. You have no extra requests.
  2. You have optional requests.
    1. Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌

You are not OK with merging this PR because

  1. Something is broken after the changes.
  2. Acceptance criteria is not reached.
  3. Code is dirty.

When to comment (neither ✅ nor ❌)

You want your comments to be addressed before merging this PR in cases like:

  1. There are leftovers like unnecessary logs, comments, etc.
  2. You have an opinionated comment regarding the code that requires a discussion.
  3. You have questions.

How to handle the comments?

  1. An owner of a comment is the only one who can resolve it.
  2. An owner of a comment must resolve it when it's addressed.
  3. A PR owner must reply with ✅ when a comment is addressed.

@AdrianContiu AdrianContiu self-assigned this Aug 27, 2024
Copy link

changeset-bot bot commented Aug 27, 2024

⚠️ No Changeset found

Latest commit: e73a2f7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@AdrianContiu AdrianContiu marked this pull request as ready for review August 27, 2024 07:42
@AdrianContiu AdrianContiu requested a review from a team as a code owner August 27, 2024 07:42
@AdrianContiu
Copy link
Contributor Author

@toptal-anvil ping reviewers

@@ -32,6 +32,8 @@ Please use this format:
```
---
'@toptal/[package]': [version bump]
//if the build bump is major, please also add the line below to have the changeset comments visible in the Picasso patch release notes.
'@toptal/picasso': patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this comment will always be visible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct! :)
I've changed it, Thx!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the https://github.com/toptal/picasso/blob/master/packages/topkit-analytics-charts/package.json is bumped, we do not need to bump @toptal/picasso as it does not depend on it. Should there be some kind of specification that @toptal/picasso should be bumped not in 100% if cases (as @toptal/picasso does not depend on all packages in https://github.com/toptal/picasso)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also mention, that when we add the patch for Picasso, we should also include the heading for giving context in the Picasso release notes

@AdrianContiu
Copy link
Contributor Author

@toptal-anvil ping reviewers

@@ -32,6 +32,7 @@ Please use this format:
```
---
'@toptal/[package]': [version bump]
//if the version bump is major, please also add `'@toptal/picasso': patch` and don't forget to include the heading to have the changeset comments visible in the Picasso patch release notes. This is only required for packages that depend on picasso, usually of the form `@toptal/picasso-show-more`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get this: packages that depend on picasso — maybe we are talking about packages that Picasso depends on?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! I will reformulate accordingly! Thx!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When introducing changes to Picasso, it's important to distinguish between updates that require user action and those that don't.

For example, in the case of a Tailwind migration, since Picasso already includes a peer dependency on picasso-tailwind, users don't need to take any additional steps when new components are migrated. Therefore, such changes can be considered non-breaking, and a patch update would suffice.

However, for breaking changes—such as an API modification (e.g., removing the icon property from the List component)—these changes would require users to adjust their implementations. In these cases, a major version bump for Picasso is necessary, rather than a patch.

@TomasSlama TomasSlama mentioned this pull request Sep 6, 2024
4 tasks
@@ -32,6 +32,7 @@ Please use this format:
```
---
'@toptal/[package]': [version bump]
//if the version bump is major, please also add `'@toptal/picasso': patch` and don't forget to include the heading to have the changeset comments visible in the Picasso patch release notes. This is only required for packages that Picasso depends on, usually of the form `@toptal/picasso-package-name`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//if the version bump is major, please also add `'@toptal/picasso': patch` and don't forget to include the heading to have the changeset comments visible in the Picasso patch release notes. This is only required for packages that Picasso depends on, usually of the form `@toptal/picasso-package-name`.
// if the version bump is major, please also add `'@toptal/picasso': patch` and don't forget to include the heading to have the changeset comments visible in the Picasso patch release notes. This is only required for packages that Picasso depends on, usually of the form `@toptal/picasso-package-name`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants