Skip to content

Commit 4af9753

Browse files
committed
RHIDP-4533 test documentation for style in GitHub pull requests
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent 1aca5af commit 4af9753

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

.github/workflows/style-guide.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Verify style guide compliance on pull request
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Linting with Vale
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: errata-ai/vale-action@reviewdog
12+
with:
13+
filter_mode: diff_context
14+
vale_flags: "--no-exit --minAlertLevel=error"
15+
reporter: github-pr-review
16+
fail_on_error: true
17+
env:
18+
# Required, set by GitHub actions automatically:
19+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
20+
GITHUB_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
21+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
titles/*/build
33
index.html
44
titles-generated/
5-
.vale.ini
65
.vale-styles/RedHat
76
.vscode
87
.cache/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; .vale.ini
2+
; Specifies Vale configuration
3+
; See: https://redhat-documentation.github.io/vale-at-red-hat/docs/user-guide/installing-vale-cli/
4+
;
5+
; Download and search Vale styles in this directory:
6+
StylesPath = ../..
7+
; Minimum alert level to display:
8+
MinAlertLevel = suggestion
9+
; Display alerts on AsciiDoc files:
10+
[*.adoc]
11+
; Apply these styles:
12+
BasedOnStyles = DeveloperHub

.vale.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .vale.ini
2+
# Specifies Vale configuration
3+
# See: https://redhat-documentation.github.io/vale-at-red-hat/docs/user-guide/installing-vale-cli/
4+
#
5+
6+
# Download and search Vale styles in this directory:
7+
StylesPath = ".vale-styles"
8+
9+
# Minimum alert level to display:
10+
MinAlertLevel = suggestion
11+
12+
# Styles to download:
13+
Packages = RedHat
14+
15+
# Display alerts on AsciiDoc files:
16+
[*.adoc]
17+
# Apply these styles:
18+
BasedOnStyles = RedHat,DeveloperHub

0 commit comments

Comments
 (0)