fix: bug: dispatcher grep -oP fails in Alpine — BusyBox doesn't support Perl regex (#150)
This commit is contained in:
parent
b560756509
commit
843440428e
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue