fix: bug: dispatcher grep -oP fails in Alpine — BusyBox doesn't support Perl regex (#150) #151

Merged
dev-qwen merged 1 commit from fix/issue-150 into main 2026-04-02 16:14:23 +00:00
Showing only changes of commit 843440428e - Show all commits

View file

@ -131,7 +131,7 @@ get_pr_for_file() {
# Step 3: extract PR number from merge commit message # Step 3: extract PR number from merge commit message
# Forgejo format: "Merge pull request 'title' (#N) from branch into main" # Forgejo format: "Merge pull request 'title' (#N) from branch into main"
local pr_num local pr_num
pr_num=$(echo "$merge_line" | grep -oP '#\d+' | head -1 | tr -d '#') pr_num=$(echo "$merge_line" | grep -oE '#[0-9]+' | head -1 | tr -d '#')
if [ -n "$pr_num" ]; then if [ -n "$pr_num" ]; then
echo "$pr_num" echo "$pr_num"