From e2567bddc9290e85867b7adcdf946d3fe5ba4e3d Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 30 Jul 2024 21:16:47 -0500 Subject: [PATCH] Update close-discussion.yml --- .github/workflows/close-discussion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-discussion.yml b/.github/workflows/close-discussion.yml index ac8086c5..6dc7c557 100644 --- a/.github/workflows/close-discussion.yml +++ b/.github/workflows/close-discussion.yml @@ -22,7 +22,7 @@ jobs: id: extract-discussion run: | pr_body="${{ github.event.pull_request.body }}" - discussion_ids=$(echo "$pr_body" | jq -r 'scan("(?i)(resolve|fix|close)[s|d]? #[0-9]+")' | grep -o '#[0-9]*' | tr -d '#') + discussion_ids=$(echo "$pr_body" | grep -oP '(?i)(resolve|fix|close)[s|d]? #\K[0-9]+') if [ -z "$discussion_ids" ]; then echo "No discussion IDs found."