Skip to content

Commit e7467e0

Browse files
committed
vale pre commit check
1 parent 4068450 commit e7467e0

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/vale.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
name: Vale style check
22
on:
3-
push:
4-
branches:
5-
- main
6-
- '**'
7-
paths:
8-
- '**.mdx'
9-
- '**.md'
10-
- '.vale/**'
11-
- '.vale.ini'
123
pull_request:
134
paths:
145
- '**.mdx'
@@ -20,8 +11,8 @@ jobs:
2011
vale:
2112
runs-on: ubuntu-latest
2213
if: |
23-
github.actor != 'github-actions' &&
24-
github.actor != 'fern-support'
14+
github.event.pull_request.user.login != 'fern-support' &&
15+
github.event.pull_request.user.login != 'github-actions'
2516
steps:
2617
- uses: actions/checkout@v4
2718

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/errata-ai/vale
3+
rev: v3.7.1
4+
hooks:
5+
- id: vale
6+
verbose: true
7+
# Always exit successfully, never block
8+
pass_filenames: true
9+
args: ['--config=.vale.ini']
10+
always_run: false
11+
# Override to never fail
12+
stages: [manual]

fern/products/docs/pages/developer-tools/vale.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Using Vale
44

55
## What is Vale?
66

7-
[Vale](https://vale.sh/) is an open-source tool for linting content from a variety of different file types, including Markdown.
7+
[Vale](https://vale.sh/) is an open-source tool for linting content from a variety of different file types, including Markdown. please (testing out vale)
88

99
## Using Vale with MDX
1010

0 commit comments

Comments
 (0)