Skip to content

Commit 79390a1

Browse files
committed
Replace closing tags with redacted message
Signed-off-by: Phillip Rak <[email protected]>
1 parent 272bac2 commit 79390a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/port-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
echo "Created temporary body file: ${BODY}"
149149
echo -e "This is an automated request to port PR #${ORIGINAL_ISSUE_NUMBER} by @${GITHUB_ACTOR}\n\n" > $BODY
150150
echo -e "Original PR body:\n\n" >> $BODY
151-
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')
151+
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*/Original text redacted by port-pr.yaml /gI'
152152
echo "${CLEANED_BODY}" >> $BODY
153153
if [ -n "$ISSUE_NUMBER" ]; then
154154
echo -e "\n\nFixes #${ISSUE_NUMBER}" >> $BODY

0 commit comments

Comments
 (0)