Update close-discussion.yml

This commit is contained in:
Chris Titus 2024-07-30 21:16:47 -05:00
parent 18f9f5e35d
commit e2567bddc9

View File

@ -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."