From d65221ed5d36f4f8bcf53ca0842f4cc44bdbf8b0 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 7 Sep 2025 20:12:40 -0700 Subject: [PATCH] Add reference link comment for Prettier filename matching patterns Prettier uses filename pattern matching to identify the programming language of files (and from this determines which files to format, and how to format those files). This is based on data from the "Linguist" project. That data was used as a reference for configuring the paths filter of the "Check Prettier Formatting" workflow, which ensures that the workflow will run whenever relevant files are modified. Documenting that reference via a comment in the workflow will facilitate the maintenance of the paths filter. --- .github/workflows/check-prettier-formatting-task.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check-prettier-formatting-task.yml b/.github/workflows/check-prettier-formatting-task.yml index 8e799df5..663c7be4 100644 --- a/.github/workflows/check-prettier-formatting-task.yml +++ b/.github/workflows/check-prettier-formatting-task.yml @@ -11,6 +11,9 @@ on: - "Taskfile.ya?ml" - "**/.prettierignore" - "**/.prettierrc*" + # Prettier-covered file patterns are defined by: + # https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml + # # CSS - "**.css" - "**.wxss"