fix: bug: dispatcher grep -oP fails in Alpine — BusyBox doesn't support Perl regex (#150)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-02 16:00:00 +00:00
parent b560756509
commit 843440428e

View file

@ -131,7 +131,7 @@ get_pr_for_file() {
# Step 3: extract PR number from merge commit message
# Forgejo format: "Merge pull request 'title' (#N) from branch into main"
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
echo "$pr_num"