Skip to content

Commit e3f072a

Browse files
committed
reverted and updated
1 parent 1bee80d commit e3f072a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/check-url-changes.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Documentation & Navigation Change Checker
1+
name: Nav Validator
22
on:
33
pull_request:
44
branches:
@@ -31,7 +31,7 @@ jobs:
3131
3232
NAV_CHANGES=""
3333
for f in $DELETED_NAV; do NAV_CHANGES+="$f: [DELETED]\n\n"; done
34-
for f in $MODIFIED_NAV; do DIFF=$(git diff $BASE $HEAD -- "$f" | grep -vE '^\+\+\+|^---'); NAV_CHANGES+="$f:\n$DIFF\n\n"; done
34+
for f in $MODIFIED_NAV; do DIFF=$(git diff $BASE $HEAD -- "$f" | grep -E '^[+-]' | grep -vE '^\+\+\+|^---'); NAV_CHANGES+="$f:\n$DIFF\n\n"; done
3535
for f in $RENAMED_NAV; do NAV_CHANGES+="$f [RENAMED]\n\n"; done
3636
echo "DELETED_MD<<EOF" >> $GITHUB_ENV
3737
echo "$DELETED_MD" >> $GITHUB_ENV
@@ -62,11 +62,11 @@ jobs:
6262
if (renamedMd) message += `**Renamed Markdown files:**\n\`\`\`\n${renamedMd}\n\`\`\`\n\n`;
6363
if (navChanges) message += `**Navigation file changes:**\n\`\`\`\n${navChanges}\n\`\`\`\n\n`;
6464
65-
message += "🚨 Please verify:\n- Links are correct\n- TOC matches expected structure\n- Deleted/renamed entries are handled. \n\n 🚨 If not handled properly, broken links (404 errors) could appear. To maintain a smooth user experience, consider:\n- Adding redirects in the \`mkdocs.yml\` file from the old URLs to the new ones\n- Updating internal references to these files";
65+
message += "🚨 Please verify:\n- Links are correct\n- Deleted/renamed entries are handled. \n\n 🚨 If not handled properly, broken links (404 errors) could appear. Consider:\n- Adding redirects in the \`mkdocs.yml\` file from the old URLs to the new ones\n- Updating internal references to these files";
6666
6767
github.rest.issues.createComment({
6868
owner: context.repo.owner,
6969
repo: context.repo.repo,
7070
issue_number: context.payload.pull_request.number,
7171
body: message
72-
});
72+
});

0 commit comments

Comments
 (0)