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

fix: change period to comma #1147

Merged

Conversation

yokishava
Copy link
Contributor

@yokishava yokishava commented Dec 20, 2022

Why

The character before omitempty in the RichTextSectionElement struct tag was period.

What

I changed to comma.

Style *RichTextSectionTextStyle `json:"style.omitempty"`
Style *RichTextSectionTextStyle `json:"style,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Thanks 🙏

Comment on lines 321 to 322
func NewRichTextSectionUserGroupElement(usergroupID string) *RichTextSectionUserGroupElement {
func NewRichTextSectionUserGroupElement(usergroupID string, style *RichTextSectionTextStyle) *RichTextSectionUserGroupElement {
Copy link
Member

Choose a reason for hiding this comment

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

This breaks backward-compatibility, so if you want to use this immediately, maybe divide this PR into another one.

Copy link
Member

Choose a reason for hiding this comment

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

(If there is nothing wrong with including next minor release, you don't divide.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review.
You are right about breaking backward compatibility. This PR should only be a comma modification of omitempty, and the style addition changes should be created as a new separate PR.

Copy link
Contributor Author

@yokishava yokishava Dec 21, 2022

Choose a reason for hiding this comment

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

PR was changed to comma change only.
The title and description of the PR have also been changed.

@yokishava yokishava changed the title fix: adding a style to RichTextSectionElements with no style definition fix: change period to comma Dec 21, 2022
@kanata2 kanata2 merged commit 342d501 into slack-go:master Dec 21, 2022
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.

2 participants