Skip to content

fix: update masks for topic should be snake case#1778

Merged
feywind merged 3 commits intogoogleapis:mainfrom
feywind:gh1587-update-mask
Jul 26, 2023
Merged

fix: update masks for topic should be snake case#1778
feywind merged 3 commits intogoogleapis:mainfrom
feywind:gh1587-update-mask

Conversation

@feywind
Copy link
Collaborator

@feywind feywind commented Jul 25, 2023

Fixes: #1587

@feywind feywind requested a review from a team as a code owner July 25, 2023 19:55
@feywind feywind requested a review from a team July 25, 2023 19:55
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Jul 25, 2023
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 25, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 25, 2023
src/util.ts Outdated
* @private
*/
export function camelToSnake(input: string): string {
return input.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's good to double check what should happen with numbers. E. g. abc360Value - should it be abc_360_value or abc360_value? Ask me why I care :)

Copy link

@leahecole leahecole Jul 25, 2023

Choose a reason for hiding this comment

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

I brought up in a 1-1 chat that I want to see a test so this would be a good test case too 😁

@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 25, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 25, 2023
@feywind feywind added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2023
@feywind feywind merged commit ba72638 into googleapis:main Jul 26, 2023
@feywind feywind deleted the gh1587-update-mask branch July 26, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the googleapis/nodejs-pubsub API. size: s Pull request size is small.

4 participants