bug: dispatcher grep -oP fails in Alpine — BusyBox doesn't support Perl regex #150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The dispatcher's
get_pr_for_file()function usesgrep -oP '#\d+'to extract PR numbers from merge commit messages. BusyBox grep in the Alpine-based edge container does not support-P(Perl regex). The command fails silently, returning empty, causing every vault action to fail with "No PR found".Fix
Replace
grep -oPwithgrep -oE(extended regex, supported by BusyBox):Also audit the entire dispatcher for other
grep -Pusage and replace with-E.Affected files
docker/edge/dispatcher.sh—get_pr_for_file()functionAcceptance criteria
grep -Porgrep -oPin dispatcher.shget_pr_for_file()correctly extracts PR number in Alpine/BusyBox