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

feat: Avoid adding empty trailing comments to oneof unions #1140

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

haines
Copy link
Contributor

@haines haines commented Nov 25, 2024

This PR tweaks the output from #1136 slightly to avoid adding the trailing // after the union member separator if there isn't a documentation comment for the following oneof field (or if comments are turned off).

@haines haines changed the title Avoid adding empty trailing comments to oneof unions feat: Avoid adding empty trailing comments to oneof unions Nov 25, 2024
@haines haines force-pushed the empty-oneof-comments branch from d418fb8 to 61264ab Compare November 25, 2024 09:47
haines added a commit to cerbos/cerbos-sdk-javascript that referenced this pull request Nov 25, 2024
haines added a commit to cerbos/cerbos-sdk-javascript that referenced this pull request Nov 25, 2024
* chore(deps-dev): update development dependencies

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Avoid adding empty trailing comments to oneof unions

stephenh/ts-proto#1140

Signed-off-by: Andrew Haines <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Andrew Haines <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Haines <[email protected]>
Copy link
Owner

@stephenh stephenh left a comment

Choose a reason for hiding this comment

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

Nice! Thanks!

@stephenh stephenh merged commit 5359e8d into stephenh:main Nov 25, 2024
6 checks passed
stephenh pushed a commit that referenced this pull request Nov 25, 2024
# [2.4.0](v2.3.0...v2.4.0) (2024-11-25)

### Features

* Avoid adding empty trailing comments to oneof unions ([#1140](#1140)) ([5359e8d](5359e8d)), closes [#1136](#1136)
@stephenh
Copy link
Owner

🎉 This issue has been resolved in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@haines haines deleted the empty-oneof-comments branch November 26, 2024 01:42
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