diff --git a/.github/workflows/vectorlint.yml b/.github/workflows/vectorlint.yml new file mode 100644 index 0000000..e00e556 --- /dev/null +++ b/.github/workflows/vectorlint.yml @@ -0,0 +1,35 @@ +name: VectorLint + +on: + pull_request: + paths: + - '**/*.md' + +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 }} + # Reviewdog options + reporter: github-pr-check + filter_mode: added + fail_on_error: false + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0b30175..31a5940 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ dist/ .idea/ coverage/ *.tsbuildinfo -vectorlint.ini .kiro/ # .agent/ /.idea 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