Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/style-guide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Verify style guide compliance on pull request
on: [pull_request]

jobs:
vale:
name: Linting with Vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Asciidoctor
run: sudo apt-get install -y asciidoctor
- name: Run Vale on new and modified content
uses: errata-ai/vale-action@v2
with:
files: assemblies
filter_mode: diff_context
vale_flags: "--no-exit --minAlertLevel=error"
reporter: github-pr-review
fail_on_error: true
token: ${{ secrets.RHDH_BOT_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
titles/*/build
index.html
titles-generated/
.vale.ini
.vale-styles/RedHat
.vscode
.cache/
Expand Down
12 changes: 12 additions & 0 deletions .vale-styles/DeveloperHub/tests/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; .vale.ini
; Specifies Vale configuration
; See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
;
; Download and search Vale styles in this directory:
StylesPath = ../..
; Minimum alert level to display:
MinAlertLevel = suggestion
; Display alerts on AsciiDoc files:
[*.adoc]
; Apply these styles:
BasedOnStyles = DeveloperHub
18 changes: 18 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .vale.ini
# Specifies Vale configuration
# See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
#

# Download and search Vale styles in this directory:
StylesPath = ".vale-styles"

# Minimum alert level to display:
MinAlertLevel = suggestion

# Styles to download:
Packages = RedHat

# Display alerts on AsciiDoc files:
[*.adoc]
# Apply these styles:
BasedOnStyles = RedHat,DeveloperHub
1 change: 0 additions & 1 deletion assemblies/images

This file was deleted.

1 change: 0 additions & 1 deletion titles/plugin-rhdh/admin

This file was deleted.

1 change: 0 additions & 1 deletion titles/plugin-rhdh/getting-started

This file was deleted.

1 change: 0 additions & 1 deletion titles/plugin-rhdh/installation

This file was deleted.

Loading