Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

ci(docs): scheduled linter (#36116)

Charisdf9c1bc0174a
diff --git a/.github/workflows/docs-lint-v2-scheduled.yml b/.github/workflows/docs-lint-v2-scheduled.yml
index a6cfd2506a3..f476dfcf920 100644
--- a/.github/workflows/docs-lint-v2-scheduled.yml
+++ b/.github/workflows/docs-lint-v2-scheduled.yml
@@ -45,18 +45,15 @@ jobs:
git config --global user.email '[email protected]'
BRANCH_NAME="bot/docs-lint-fixes"
EXISTING_BRANCH=$(git ls-remote --heads origin $BRANCH_NAME)
- if [ -n "$EXISTING_BRANCH" ]; then
- git checkout $BRANCH_NAME
- else
- git checkout -b $BRANCH_NAME
+ if [[ -n "$EXISTING_BRANCH" ]]; then
+ git push origin --delete $BRANCH_NAME
fi
+ git checkout -b $BRANCH_NAME
supa-mdx-lint apps/docs/content --fix || FIX_FAILED=1
git add .
git commit -m '[bot] fix lint errors' || true
git push origin $BRANCH_NAME
- if [ -z "$EXISTING_BRANCH" ]; then
- gh pr create --title '[bot] fix lint errors' --body 'This PR fixes lint errors in the documentation.' --head $BRANCH_NAME
- fi
+ gh pr create --title '[bot] fix lint errors' --body 'This PR fixes lint errors in the documentation.' --head $BRANCH_NAME
if [ "${FIX_FAILED:-0}" -eq 1 ]; then
echo "Fix did not correct all errors."
exit 1
diff --git a/supa-mdx-lint/Rule003Spelling.toml b/supa-mdx-lint/Rule003Spelling.toml
index 9ca43af1105..9c174104a2f 100644
--- a/supa-mdx-lint/Rule003Spelling.toml
+++ b/supa-mdx-lint/Rule003Spelling.toml
@@ -35,6 +35,7 @@ allow_list = [
"[Cc]onfigs?",
"[Cc]onsecutiveness",
"[Cc]ooldowns?",
+ "[Cc]oroutines?",
"[Cc]ron",
"[Dd]atasets?",
"[Dd]atasources?",