Skip to content

Conversation

@brianschubert
Copy link
Contributor

Closes #178

@srittau
Copy link
Member

srittau commented Aug 11, 2025

This should exclude items where there is text in front of the hash. E.g. foo/bar#123 should not be linked. This might be as easy as adding (^|\W) to the front of the regex.

@brianschubert
Copy link
Contributor Author

Right now this only matches numbers that are also surrounded by parentheses (i.e. (#NNNNN), but not #NNNNN). The idea is to only replace the PR number that gets added to the message when merging. I thought about trying to match more general cases, but I wasn't sure what false positives there could be. Happy to tweak if you have any suggestions

@srittau srittau merged commit 856fc1c into typeshed-internal:main Aug 11, 2025
3 checks passed
donbarbos added a commit to donbarbos/stub_uploader that referenced this pull request Nov 21, 2025
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.

Link PR numbers in changelog entries?

3 participants