From d4c2d9c06681f4344827d633301297681da29de3 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 17 Jun 2025 15:38:34 -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 | 2 ++ workflow-templates/check-prettier-formatting-task.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check-prettier-formatting-task.yml b/.github/workflows/check-prettier-formatting-task.yml index a63991c3..e8174035 100644 --- a/.github/workflows/check-prettier-formatting-task.yml +++ b/.github/workflows/check-prettier-formatting-task.yml @@ -108,6 +108,8 @@ 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" diff --git a/workflow-templates/check-prettier-formatting-task.yml b/workflow-templates/check-prettier-formatting-task.yml index a63991c3..e8174035 100644 --- a/workflow-templates/check-prettier-formatting-task.yml +++ b/workflow-templates/check-prettier-formatting-task.yml @@ -108,6 +108,8 @@ 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"