Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/pr-close-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
- name: Check for issue number
id: check_issue
shell: bash
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
# Store PR body in a file to avoid shell interpretation issues
echo '${{ github.event.pull_request.body }}' > pr_body.txt
# Store PR body in a file using env var to avoid shell interpretation issues
printf '%s' "$PR_BODY" > pr_body.txt

# Check for issue reference pattern
if grep -q "#[0-9]\\+" pr_body.txt; then
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
- name: Check for issue number
id: check_issue
shell: bash
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
# Store PR body in a file to avoid shell interpretation issues
echo '${{ github.event.pull_request.body }}' > pr_body.txt
# Store PR body in a file using env var to avoid shell interpretation issues
printf '%s' "$PR_BODY" > pr_body.txt

# Check for issue reference pattern
if grep -q "#[0-9]\\+" pr_body.txt; then
Expand Down
Loading