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 10 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.
image image

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: 465c9a6

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 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`.

@AdrianContiu
Copy link
Contributor Author

@toptal-anvil ping reviewers

@@ -29,6 +29,9 @@ The same as commits, we write changeset in `present simple`.

Please use this format:

> [!NOTE]
> 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
Contributor

Choose a reason for hiding this comment

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

NIT

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 required for packages that Picasso depends on, usually these packages have name like `@toptal/picasso-package-name`.

Copy link
Contributor

@sashuk sashuk left a comment

Choose a reason for hiding this comment

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

Added small NIT comment, overall looks good!

@@ -29,6 +29,9 @@ The same as commits, we write changeset in `present simple`.

Please use this format:

> [!NOTE]
> If the version bump is major, please also add `'@toptal/picasso': patch | minor | major` and don't forget to include the heading to have the changeset comments visible in the Picasso patch release notes. This is required for packages that Picasso depends on, usually these packages have name like `@toptal/picasso-package-name`.

Copy link
Collaborator

@OleksandrNechai OleksandrNechai Oct 8, 2024

Choose a reason for hiding this comment

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

Unfortunately I could not understand this note.

  1. Maybe better to put it after the format itself? The text earlier says "Please use this format:" and then note comes as if it is format 🤔
  2. version bump is major, please also add '@toptal/picasso': patch | minor | major` does not make sense to me. Add where? How do I pick between patch | minor | major?
  3. don't forget to include the heading include where? what heading?
  4. Picasso patch release notes could be a link.
  5. usually these packages have name like how do I know if I am in unusual case? What if my package is called differently but Picasso depends on it? How do I know?

General note. This is technical documentation, IMO it has to be very terse and clear, without "please" and "don't forget". Here is and example I did with ChatGPT:

For major version bumps, add '@toptal/picasso': patch | minor | major and include the heading to display the changeset comments in the Picasso patch release notes. This applies to Picasso dependent packages, typically named @toptal/picasso-package-name.

Copy link
Collaborator

@OleksandrNechai OleksandrNechai left a comment

Choose a reason for hiding this comment

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

Thanks for improving documentation! I think it is good overall, but I think there is room for improvement. Please, make the text more clear and in tech docs style and we will be good to go ;)

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