mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
PR to start introducing Linter V2! Primary improvements from this linter: Better parsing of MDX (fewer false positives) More flexibility And suggested autofixes! (see auto-generated PR comment below for how that works) Turning this on for only a small portion of the repo at first to avoid an avalanche of alerts, will slowly expand from there. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
32 lines
864 B
YAML
32 lines
864 B
YAML
name: reviewdog
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.vale.ini'
|
|
- 'vale/**'
|
|
- 'apps/docs/content/**'
|
|
|
|
jobs:
|
|
vale:
|
|
name: runner / vale
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: |
|
|
.vale.ini
|
|
vale
|
|
apps/docs/content
|
|
- name: Get changed files
|
|
id: changed-files
|
|
env:
|
|
BASE_REF: ${{ github.base_ref }}
|
|
SHA: ${{ github.sha }}
|
|
run: |
|
|
git fetch origin $BASE_REF
|
|
echo "CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/$BASE_REF $SHA | grep '^apps/docs/content/' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_OUTPUT
|
|
- uses: errata-ai/vale-action@reviewdog
|
|
with:
|
|
files: '${{ steps.changed-files.outputs.CHANGED_FILES }}'
|
|
separator: ','
|