From c87f9bcf7b56f6c1e05d1f735b0330cc9e25e798 Mon Sep 17 00:00:00 2001 From: Ayomide Date: Fri, 12 Dec 2025 12:40:11 +0100 Subject: [PATCH 1/5] Setup vectorlint github action --- .github/workflows/vectorlint.yml | 39 +++++++++++++++++++ .../technical-accuracy/test-bad-article.md | 13 +++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/vectorlint.yml create mode 100644 tests/fixtures/technical-accuracy/test-bad-article.md diff --git a/.github/workflows/vectorlint.yml b/.github/workflows/vectorlint.yml new file mode 100644 index 0000000..6eea49b --- /dev/null +++ b/.github/workflows/vectorlint.yml @@ -0,0 +1,39 @@ +name: VectorLint + +on: + pull_request: + paths: + - '**/*.md' + - '**/*.mdx' + - 'vectorlint.ini' + +permissions: + contents: read + pull-requests: write + checks: write + +concurrency: + group: vectorlint-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run VectorLint + uses: TRocket-Labs/vectorlint-action@v1 + with: + llm_provider: ${{ secrets.LLM_PROVIDER }} + # OpenAI + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + openai_model: ${{ secrets.OPENAI_MODEL }} + openai_temperature: ${{ secrets.OPENAI_TEMPERATURE }} + # Perplexity + perplexity_api_key: ${{ secrets.PERPLEXITY_API_KEY }} + # Reviewdog options + reporter: github-pr-check + filter_mode: added + fail_on_error: false + \ No newline at end of file diff --git a/tests/fixtures/technical-accuracy/test-bad-article.md b/tests/fixtures/technical-accuracy/test-bad-article.md new file mode 100644 index 0000000..f017381 --- /dev/null +++ b/tests/fixtures/technical-accuracy/test-bad-article.md @@ -0,0 +1,13 @@ +# The Future of AI in 2025 + +AI is gonna be huge. It will literally solve everything. + +## New Tools + +Have you heard of **ReactGPT-Pro**? It's a new framework that writes all your code for you. Also, **NodeJS-Turbo** is 100x faster than Rust. + +## Why it matters + +The synergy of the AI paradigm shift is leveraging the blockchain for maximum scalability. We need to utilize the generative capabilities to optimize our workflows. + +This sentence has bad grammer and spelling mistaks. It is very poorly written. From fb124fa9ba408d86fe9bc87698e445e79a53288a Mon Sep 17 00:00:00 2001 From: Ayomide Date: Fri, 12 Dec 2025 17:35:01 +0100 Subject: [PATCH 2/5] Add vectorlint.ini --- .gitignore | 2 +- tests/fixtures/technical-accuracy/test-bad-article.md | 2 +- vectorlint.ini | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 vectorlint.ini diff --git a/.gitignore b/.gitignore index 0b30175..a481c29 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ dist/ .idea/ coverage/ *.tsbuildinfo -vectorlint.ini +# vectorlint.ini .kiro/ # .agent/ /.idea diff --git a/tests/fixtures/technical-accuracy/test-bad-article.md b/tests/fixtures/technical-accuracy/test-bad-article.md index f017381..445ae1e 100644 --- a/tests/fixtures/technical-accuracy/test-bad-article.md +++ b/tests/fixtures/technical-accuracy/test-bad-article.md @@ -10,4 +10,4 @@ Have you heard of **ReactGPT-Pro**? It's a new framework that writes all your co The synergy of the AI paradigm shift is leveraging the blockchain for maximum scalability. We need to utilize the generative capabilities to optimize our workflows. -This sentence has bad grammer and spelling mistaks. It is very poorly written. +This sentence has bad grammer and spelling mistaks. It is very poorly written. diff --git a/vectorlint.ini b/vectorlint.ini new file mode 100644 index 0000000..2397594 --- /dev/null +++ b/vectorlint.ini @@ -0,0 +1,6 @@ +RulesPath=.github/rules +Concurrency=4 +DefaultSeverity=warning + +[**/*.md] +RunRules=TinyRocket From f38c5e54145c3b0a7599c5b8c4c2afc0efab156c Mon Sep 17 00:00:00 2001 From: Ayomide Date: Mon, 15 Dec 2025 07:30:29 +0100 Subject: [PATCH 3/5] Clean vectorlint workflow --- .github/workflows/vectorlint.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vectorlint.yml b/.github/workflows/vectorlint.yml index 6eea49b..908ca55 100644 --- a/.github/workflows/vectorlint.yml +++ b/.github/workflows/vectorlint.yml @@ -5,7 +5,6 @@ on: paths: - '**/*.md' - '**/*.mdx' - - 'vectorlint.ini' permissions: contents: read From 7d0cb5f4773d09ccd2901de4eed4b7119ab9e5f2 Mon Sep 17 00:00:00 2001 From: Ayomide Date: Wed, 17 Dec 2025 17:11:13 +0100 Subject: [PATCH 4/5] Clean up PR implementation --- .github/workflows/vectorlint.yml | 2 -- .gitignore | 1 - .../fixtures/technical-accuracy/test-bad-article.md | 13 ------------- 3 files changed, 16 deletions(-) delete mode 100644 tests/fixtures/technical-accuracy/test-bad-article.md diff --git a/.github/workflows/vectorlint.yml b/.github/workflows/vectorlint.yml index 908ca55..a89ad16 100644 --- a/.github/workflows/vectorlint.yml +++ b/.github/workflows/vectorlint.yml @@ -29,8 +29,6 @@ jobs: openai_api_key: ${{ secrets.OPENAI_API_KEY }} openai_model: ${{ secrets.OPENAI_MODEL }} openai_temperature: ${{ secrets.OPENAI_TEMPERATURE }} - # Perplexity - perplexity_api_key: ${{ secrets.PERPLEXITY_API_KEY }} # Reviewdog options reporter: github-pr-check filter_mode: added diff --git a/.gitignore b/.gitignore index a481c29..31a5940 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ dist/ .idea/ coverage/ *.tsbuildinfo -# vectorlint.ini .kiro/ # .agent/ /.idea diff --git a/tests/fixtures/technical-accuracy/test-bad-article.md b/tests/fixtures/technical-accuracy/test-bad-article.md deleted file mode 100644 index 445ae1e..0000000 --- a/tests/fixtures/technical-accuracy/test-bad-article.md +++ /dev/null @@ -1,13 +0,0 @@ -# The Future of AI in 2025 - -AI is gonna be huge. It will literally solve everything. - -## New Tools - -Have you heard of **ReactGPT-Pro**? It's a new framework that writes all your code for you. Also, **NodeJS-Turbo** is 100x faster than Rust. - -## Why it matters - -The synergy of the AI paradigm shift is leveraging the blockchain for maximum scalability. We need to utilize the generative capabilities to optimize our workflows. - -This sentence has bad grammer and spelling mistaks. It is very poorly written. From 4e174b93336e18057e641b1ef517f24edcfd83a7 Mon Sep 17 00:00:00 2001 From: Ayomide Date: Wed, 17 Dec 2025 17:29:29 +0100 Subject: [PATCH 5/5] Remove mdx --- .github/workflows/vectorlint.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/vectorlint.yml b/.github/workflows/vectorlint.yml index a89ad16..e00e556 100644 --- a/.github/workflows/vectorlint.yml +++ b/.github/workflows/vectorlint.yml @@ -4,7 +4,6 @@ on: pull_request: paths: - '**/*.md' - - '**/*.mdx' permissions: contents: read @@ -33,4 +32,4 @@ jobs: reporter: github-pr-check filter_mode: added fail_on_error: false - \ No newline at end of file + \ No newline at end of file