action-dependabot-auto-merge
action-dependabot-auto-merge copied to clipboard
Fix version detection
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.
Hi @ahmadnassri, is there any chance to get this merged soon?
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!