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

Fix version detection #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliashaeussler
Copy link

@eliashaeussler eliashaeussler commented May 9, 2022

The current version detection fails since it's not strict enough. For example, given the PR title

Bump @fontsource/lato from 4.5.5 to 4.5.8

Both from and to versions are parsed as 4.5.5, because the word to is included in the dependency name as well. A real world example can be seen at https://github.com/eliashaeussler/typo3-badges/runs/6348654008?check_suite_focus=true.

Solution: The corresponding regexes have been adapted to enforce a whitespace prior to the from and to terms.

Fixes #114.

The current version detection fails since it's not strict enough. For example,
given the PR title "Bump @fontsource/lato from 4.5.5 to 4.5.8": Both "from"
and "to" versions are parsed as "4.5.5.", because the word "to" is included
in the dependency name as well.

Therefore, the corresponding regexes have been adapted to enforce a
whitespace prior to the "from" and "to" terms.
@eliashaeussler
Copy link
Author

Hi @ahmadnassri, is there any chance to get this merged soon?

@lpgera
Copy link

lpgera commented Aug 6, 2023

I'm also facing a similar issue with @fontsource/roboto updates. I've spent some time debugging the action before I stumbled upon this PR which fixes the regex pattern.

@ahmadnassri sorry for pinging you again, but is there any chance this could be merged and released? If you think that more work is needed in the form of unit tests, just let me know, I'm happy to contribute!

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.

Dependencies ending in "to" (eg "moto") are parsed incorrectly.
2 participants