From 7d28d20728c609298264a446e129b2d6dd96918b Mon Sep 17 00:00:00 2001 From: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Date: Sun, 4 Oct 2026 11:34:22 +0200 Subject: [PATCH 1/2] Exclude VART from website spellcheck --- .github/workflows/links.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index d594d228358..8dce0b5891e 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -145,7 +145,7 @@ jobs: --builtin clear,informal,en-GB_to_en-US \ --uri-ignore-words-list "*" \ --ignore-regex '\.alls\b' \ - --ignore-words-list "Ain't,grey,writeable,MENAT,Hart,wither,Bund,DED,AKS,VAs,RepResNet,iDenfy,Idenfy,WIT,Smoot,EHR,ROUGE,ALS,iTerm,Carmel,FPR,Hach,Calle,ore,COO,MOT,crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall,skelton,goin,tread,braket,corse,SoM,couldn't,couldn,wasn't,wasn,nin,cancelled,MapPin,cann,CANN,Vektor,MITRE,Confidencial,bale,HSI" \ + --ignore-words-list "Ain't,grey,writeable,MENAT,Hart,wither,Bund,DED,AKS,VAs,RepResNet,iDenfy,Idenfy,WIT,Smoot,EHR,ROUGE,ALS,iTerm,Carmel,FPR,Hach,Calle,ore,COO,MOT,crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall,skelton,goin,tread,braket,corse,SoM,couldn't,couldn,wasn't,wasn,nin,cancelled,MapPin,cann,CANN,Vektor,MITRE,Confidencial,bale,HSI,VART" \ --skip "*.pt,*.pth,*.torchscript,*.onnx,*.tflite,*.pb,*.bin,*.param,*.mlmodel,*.engine,*.npy,*.data*,*.csv,*pnnx*,*venv*,*translat*,*lock*,__pycache__*,*.ico,*.jpg,*.png,*.mp4,*.mov,/runs,/.git,./docs/mkdocs_??.yml" \ 2>&1 || true) @@ -164,8 +164,8 @@ jobs: echo "$MODIFIED_OUTPUT" >> "$GITHUB_STEP_SUMMARY" # Prepare limited output for Slack (first 10 errors) - SLACK_OUTPUT=$(echo "$MODIFIED_OUTPUT" | grep "==>" | head -10 | awk '{printf "%s\\n", $0}') - SLACK_HEADER="*${TOTAL_ERRORS} Spelling Errors*\\n" + SLACK_OUTPUT=$(echo "$MODIFIED_OUTPUT" | grep "==>" | head -10 | awk '{printf "%s\n", $0}') + SLACK_HEADER="*${TOTAL_ERRORS} Spelling Errors*\n" if [ "$TOTAL_ERRORS" -gt 10 ]; then SLACK_FOOTER="...$((TOTAL_ERRORS - 10)) more ➜ " else @@ -230,7 +230,7 @@ jobs: ' summary.txt | tr -d '\r' | \ sed -E 's/[[:space:]]*\|[[:space:]]*Rejected status code[^:]*:[[:space:]]*/ | /g' | \ cat -s | \ - sed -E 's/^\[([^]]*)\.html\]:$/\1:/; s/^\[([0-9]{3})\] /\1 /; s/"/\\"/g' > /tmp/cleaned_summary.txt + sed -E 's/^\[([^]]*)\.html\]:$/\1:/; s/^\[([0-9]{3})\] /\1 /; s/"/\"/g' > /tmp/cleaned_summary.txt # Keep the full output in Actions cat /tmp/cleaned_summary.txt >> "$GITHUB_STEP_SUMMARY" @@ -242,8 +242,8 @@ jobs: /^[0-9][0-9][0-9] https?:\/\// && shown++ < 10 { print page " " $0 } ' /tmp/cleaned_summary.txt | perl -pe ' s{(https?://\S+)}{"<$1|" . (length($1) > 80 ? substr($1, 0, 77) . "..." : $1) . ">"}ge - ' | awk '{printf "%s\\n", $0}') - SLACK_HEADER="*${TOTAL_ERRORS} Broken Links*\\n" + ' | awk '{printf "%s\n", $0}') + SLACK_HEADER="*${TOTAL_ERRORS} Broken Links*\n" if [ "$TOTAL_ERRORS" -gt 10 ]; then SLACK_FOOTER="...$((TOTAL_ERRORS - 10)) more ➜ " else From 13f1e26fc26da3d2a420d70dd159e704a5212c36 Mon Sep 17 00:00:00 2001 From: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Date: Sun, 4 Oct 2026 11:36:06 +0200 Subject: [PATCH 2/2] Preserve existing Slack output escaping assistant-idempotency:0dfe44463f5c56f5 --- .github/workflows/links.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 8dce0b5891e..9bb6f650e96 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -164,8 +164,8 @@ jobs: echo "$MODIFIED_OUTPUT" >> "$GITHUB_STEP_SUMMARY" # Prepare limited output for Slack (first 10 errors) - SLACK_OUTPUT=$(echo "$MODIFIED_OUTPUT" | grep "==>" | head -10 | awk '{printf "%s\n", $0}') - SLACK_HEADER="*${TOTAL_ERRORS} Spelling Errors*\n" + SLACK_OUTPUT=$(echo "$MODIFIED_OUTPUT" | grep "==>" | head -10 | awk '{printf "%s\\n", $0}') + SLACK_HEADER="*${TOTAL_ERRORS} Spelling Errors*\\n" if [ "$TOTAL_ERRORS" -gt 10 ]; then SLACK_FOOTER="...$((TOTAL_ERRORS - 10)) more ➜ " else @@ -230,7 +230,7 @@ jobs: ' summary.txt | tr -d '\r' | \ sed -E 's/[[:space:]]*\|[[:space:]]*Rejected status code[^:]*:[[:space:]]*/ | /g' | \ cat -s | \ - sed -E 's/^\[([^]]*)\.html\]:$/\1:/; s/^\[([0-9]{3})\] /\1 /; s/"/\"/g' > /tmp/cleaned_summary.txt + sed -E 's/^\[([^]]*)\.html\]:$/\1:/; s/^\[([0-9]{3})\] /\1 /; s/"/\\"/g' > /tmp/cleaned_summary.txt # Keep the full output in Actions cat /tmp/cleaned_summary.txt >> "$GITHUB_STEP_SUMMARY" @@ -242,8 +242,8 @@ jobs: /^[0-9][0-9][0-9] https?:\/\// && shown++ < 10 { print page " " $0 } ' /tmp/cleaned_summary.txt | perl -pe ' s{(https?://\S+)}{"<$1|" . (length($1) > 80 ? substr($1, 0, 77) . "..." : $1) . ">"}ge - ' | awk '{printf "%s\n", $0}') - SLACK_HEADER="*${TOTAL_ERRORS} Broken Links*\n" + ' | awk '{printf "%s\\n", $0}') + SLACK_HEADER="*${TOTAL_ERRORS} Broken Links*\\n" if [ "$TOTAL_ERRORS" -gt 10 ]; then SLACK_FOOTER="...$((TOTAL_ERRORS - 10)) more ➜ " else