bug: dispatcher grep -oP fails in Alpine — BusyBox doesn't support Perl regex #150
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#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