Skip to content

Commit d65221e

Browse files
committed
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.
1 parent 5adef71 commit d65221e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/check-prettier-formatting-task.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- "Taskfile.ya?ml"
1212
- "**/.prettierignore"
1313
- "**/.prettierrc*"
14+
# Prettier-covered file patterns are defined by:
15+
# https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml
16+
#
1417
# CSS
1518
- "**.css"
1619
- "**.wxss"

0 commit comments

Comments
 (0)