From a9c7fc9f7b8cef3d3750ba0c1c2af851a9aebc58 Mon Sep 17 00:00:00 2001 From: Alex <32193978+SavchenkoAlexander@users.noreply.github.com> Date: Mon, 3 Mar 2025 15:00:03 +0400 Subject: [PATCH 1/5] Update Readme.md --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index b4541e2..03032f0 100644 --- a/Readme.md +++ b/Readme.md @@ -3,7 +3,7 @@ [![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) # approvals-test -test repo for pr approvals test +test repo for pr approvals test (vale test) ## Does this example address your development requirements/objectives? From 4e5000ed950814c0178503d3d7bc17a6bc276b6d Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Mon, 3 Mar 2025 15:08:52 +0400 Subject: [PATCH 2/5] README auto update [skip ci] --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index 03032f0..6eb4ad5 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,5 @@ +[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1245197) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) [![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) From abc9c30591a851a9bf69c6519f5cd7537fce2816 Mon Sep 17 00:00:00 2001 From: Alex <32193978+SavchenkoAlexander@users.noreply.github.com> Date: Fri, 3 Oct 2025 17:40:47 +0400 Subject: [PATCH 3/5] Add test value validation section Add a section for test value validation --- Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Readme.md b/Readme.md index 6eb4ad5..9865dc8 100644 --- a/Readme.md +++ b/Readme.md @@ -12,3 +12,5 @@ test repo for pr approvals test (vale test) (you will be redirected to DevExpress.com to submit your response) + +Test vale validation From ad4e3b51630ca28e1489ef417b9f62889088ab75 Mon Sep 17 00:00:00 2001 From: Alex <32193978+SavchenkoAlexander@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:00:17 +0400 Subject: [PATCH 4/5] Update vale linter to check only README.md --- .github/workflows/vale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index fc11f81..8d0767e 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -24,7 +24,7 @@ jobs: - name: vale linter check uses: DevExpress/vale-action@reviewdog with: - files: '["README.md", "readme.md", "Readme.md"]' + files: '["README.md"]' fail_on_error: true filter_mode: nofilter reporter: github-check From b5ef55ba1f2e46663c089011ed8bea5eeddb65e4 Mon Sep 17 00:00:00 2001 From: Alex <32193978+SavchenkoAlexander@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:04:19 +0400 Subject: [PATCH 5/5] update vale linter script --- .github/workflows/vale.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 8d0767e..c5e0a70 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -13,6 +13,7 @@ jobs: steps: - name: clone repo uses: actions/checkout@v4 + - name: clone vale-styles repo uses: actions/checkout@v4 with: @@ -21,10 +22,37 @@ jobs: ssh-key: ${{ secrets.VALE_STYLES_ACCESS_KEY }} - name: copy vale rules to the root repo run: shopt -s dotglob && cp -r ./vale-styles/vale/* . + + - name: Prepare existing README files list + id: prepare + shell: bash + run: | + candidates=(README.md readme.md Readme.md) + files_json_parts=() + for f in "${candidates[@]}"; do + if [[ -f "$f" ]]; then + files_json_parts+=("\"$f\"") + fi + done + if [[ ${#files_json_parts[@]} -eq 0 ]]; then + echo "No README variants found. Skipping Vale." + echo "skip=true" >> "$GITHUB_OUTPUT" + else + files_json="[$(IFS=,; echo "${files_json_parts[*]}")]" + echo "Will lint: $files_json" + echo "valefiles=$files_json" >> "$GITHUB_OUTPUT" + echo "skip=false" >> "$GITHUB_OUTPUT" + fi + - name: vale linter check + if: steps.prepare.outputs.skip == 'false' uses: DevExpress/vale-action@reviewdog with: - files: '["README.md"]' + files: ${{ steps.prepare.outputs.valefiles }} fail_on_error: true filter_mode: nofilter reporter: github-check + + - name: Note skipped (no README present) + if: steps.prepare.outputs.skip == 'true' + run: echo "Vale step skipped because no README variant exists."