Skip to content
Merged
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion .github/workflows/port-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ jobs:
echo "Created temporary body file: ${BODY}"
echo -e "This is an automated request to port PR #${ORIGINAL_ISSUE_NUMBER} by @${GITHUB_ACTOR}\n\n" > $BODY
echo -e "Original PR body:\n\n" >> $BODY
echo "${ORIGINAL_PR}" | jq -r .body >> $BODY
CLEANED_BODY=$(echo "${ORIGINAL_PR}" | jq -r .body | sed -E 's/(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved):?\s+([a-zA-Z0-9-]+\/[a-zA-Z0-9-.]*)?#[0-9]+\s*,?\s*//gI')
echo "${CLEANED_BODY}" >> $BODY
if [ -n "$ISSUE_NUMBER" ]; then
echo -e "\n\nFixes #${ISSUE_NUMBER}" >> $BODY
fi
Expand Down
Loading