Skip to content

Commit d85ff38

Browse files
authored
Merge pull request #108 from anarnold97/vale-update-4
Vale update 4
2 parents d321741 + ec5a995 commit d85ff38

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/lint-with-vale.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: errata-ai/vale-action@reviewdog
1515

1616
with:
17-
#filter_mode: diff_context
18-
#vale_flags: "--no-exit --minAlertLevel=error"
19-
#reporter: github-pr-review
20-
files: docs/*
17+
filter_mode: added
18+
vale_flags: "--glob=*.txt"
19+
reporter: github-pr-check
20+
files: ../docs/*
2121
# Radhika says not to block PR merge if there are Vale errors
2222
# To change set fail_on_error: true
2323
fail_on_error: false
@@ -26,4 +26,4 @@ jobs:
2626
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
2727
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2828
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}
29-
29+

.github/workflows/reviewdog.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: reviewdog
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
reviewdog-github-check:
7+
permissions:
8+
checks: write
9+
contents: read
10+
pull-requests: write
11+
name: reviewdog (github-check)
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Run reviewdog
15+
env:
16+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
run: |
18+
golint ./... | reviewdog -f=golint -reporter=github-pr-check

0 commit comments

Comments
 (0)