Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate to Vale #3233

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
17 changes: 1 addition & 16 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-1
APPZI_TOKEN: ${{ secrets.APPZI_TOKEN }}
MENDABLE_API_KEY: ${{ secrets.MENDABLE_API_KEY }}
FULLSTORY_ORGID: ${{ secrets.FULLSTORY_ORGID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand All @@ -39,21 +38,7 @@ jobs:
vale:
name: Writing Checks
needs: [run-ci]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Vale Check
uses: errata-ai/vale-action@reviewdog
with:
filter_mode: added
reporter: github-pr-review
vale_flags: --glob=*.{md} --minAlertLevel=error
fail_on_error: false
version: 3.5.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: spectrocloud/spectro-vale-pkg/.github/workflows/vale.yml@main

prettier:
name: Check Code Formatting
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ artifact.zip
.netlify/
# Ignore _partials/index.ts
_partials/index.ts


.vale-config/
vale/styles/spectrocloud/
vale/styles/spectrocloud-docs-internal/
vale/styles/config/vocabularies/spectrocloud-vocab
6 changes: 3 additions & 3 deletions vale.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
StylesPath = vale/styles

Vocab = Internal
Vocab = spectrocloud-vocab

MinAlertLevel = suggestion

Packages = Google, write-good, alex
Packages = Google, write-good, alex, https://github.com/spectrocloud/spectro-vale-pkg/releases/latest/download/spectrocloud-docs-internal.zip

[*.md]
BasedOnStyles = Vale, Google, write-good, alex, spectrocloud
BasedOnStyles = Vale, Google, write-good, alex, spectrocloud-docs-internal
IgnoredScopes = code, tt, img, url, a,
; BlockIgnores =

Expand Down
211 changes: 0 additions & 211 deletions vale/styles/config/vocabularies/Internal/accept.txt

This file was deleted.

20 changes: 0 additions & 20 deletions vale/styles/config/vocabularies/Internal/reject.txt

This file was deleted.

23 changes: 0 additions & 23 deletions vale/styles/spectrocloud/ableism.yml

This file was deleted.

56 changes: 0 additions & 56 deletions vale/styles/spectrocloud/acronym.yml

This file was deleted.

8 changes: 0 additions & 8 deletions vale/styles/spectrocloud/admonitions.yml

This file was deleted.

13 changes: 0 additions & 13 deletions vale/styles/spectrocloud/colon.yml

This file was deleted.

Loading