Skip to content

feat(internal/librarian/nodejs): update existing library for new API paths#5998

Merged
jskeet merged 3 commits into
googleapis:mainfrom
jskeet:nodejs-update-existing
May 14, 2026
Merged

feat(internal/librarian/nodejs): update existing library for new API paths#5998
jskeet merged 3 commits into
googleapis:mainfrom
jskeet:nodejs-update-existing

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented May 14, 2026

The "librarian add" command is updated to add a new API path to an existing library for nodejs when the new path matches a path in that library, modulo the version at the end.

More subtelty may be needed later, but this will handle simple situations as well as putting in place the framework for later logic to fit into.

Towards #5971

@jskeet jskeet requested a review from quirogas May 14, 2026 13:23
@jskeet jskeet requested a review from a team as a code owner May 14, 2026 13:23
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Node.js libraries, including logic to associate new API paths with existing libraries by comparing versionless paths. Feedback was provided regarding the versionless helper function, which fails to correctly handle trailing slashes, potentially leading to incorrect matches. Additionally, a suggestion was made to ensure unique test case names in the new Node.js test suite for better clarity.

Comment thread internal/librarian/nodejs/add.go
Comment thread internal/librarian/nodejs/add_test.go Outdated
…paths

The "librarian add" command is updated to add a new API path to an
existing library for nodejs when the new path matches a path in that
library, modulo the version at the end.

More subtelty may be needed later, but this will handle simple
situations as well as putting in place the framework for later logic
to fit into.

Towards googleapis#5971
@jskeet jskeet force-pushed the nodejs-update-existing branch from 868899a to 5a9cde1 Compare May 14, 2026 13:32
@jskeet jskeet changed the title feat(internal/librarian/nodejs): update existing library for new API … feat(internal/librarian/nodejs): update existing library for new API paths May 14, 2026
@jskeet jskeet merged commit f84fec5 into googleapis:main May 14, 2026
24 checks passed
@jskeet jskeet deleted the nodejs-update-existing branch May 14, 2026 15:26
sofisl pushed a commit that referenced this pull request May 14, 2026
…paths (#5998)

The "librarian add" command is updated to add a new API path to an
existing library for nodejs when the new path matches a path in that
library, modulo the version at the end.

More subtelty may be needed later, but this will handle simple
situations as well as putting in place the framework for later logic to
fit into.

Towards #5971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants