Repository navigation
Keep the custom-toolset example's version from changing the PyPI path - #74939
Merged
Merged
Conversation
potiuk
requested review from
Lee-W,
ashb,
gopidesupavan and
kaxil
as code owners
October 17, 2026 22:41
1 task done
kaxil
approved these changes
Oct 17, 2026
The writing-a-toolset guide says the example's pattern constraints keep a name or version from changing the URL the hook calls, but the version pattern accepted "." and "..", which step the request onto another PyPI path. It now has to start with a letter or digit, like the name pattern. Generated-by: Claude Opus 5
…he#74935 The entry merged in apache#74937 cited apache#74935, which was closed in favour of apache#74904 before this fix could land through it; the fix ships through apache#74939. apache#74937 itself goes in the excluded block. Generated-by: Claude Opus 5
potiuk
force-pushed
the
common-ai-docs-rc1-fixes
branch
from
October 17, 2026 22:47
3dd2dd4 to
dd31758
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #74904. The writing-a-toolset guide says the example's pattern constraints keep a name or version from changing the URL the hook calls, but the
versionpattern (^[A-Za-z0-9.!+_-]+$) accepted.and.., which step the request onto another PyPI path (pypi/<name>/../jsonnormalizes to/pypi/json). It now has to start with a letter or digit, like thenamepattern:^[A-Za-z0-9][A-Za-z0-9.!+_-]*$. Real versions such as3.1.0,1!2.0and2.0.0rc1still match.It also points the 1.0.0 changelog entry merged in #74937 at this PR instead of #74935, which was closed in favour of #74904 before this fix could land through it, and records #74937 in the excluded block.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines
🤖 Generated with Claude Code