From c68a856c03794e9287b5c24c59f711abcbf13754 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 2 May 2026 21:25:28 +0000 Subject: [PATCH 1/4] Initial plan From fc255a979b97760d6c9f85c21b7c9379216fe4c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 2 May 2026 21:27:23 +0000 Subject: [PATCH 2/4] Fix yamllint failure on Windows by enforcing LF line endings - Add .gitattributes to enforce LF line endings globally and explicitly for YAML files - Update mixed-line-ending pre-commit hook with --fix=lf to auto-convert CRLF to LF Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/fc11f167-090e-4ef0-ae2b-ec48c570f076 Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com> --- .gitattributes | 13 +++++++++++++ .pre-commit-config.yaml | 1 + 2 files changed, 14 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a4a8034 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,13 @@ +# Enforce LF line endings for all text files to prevent CRLF issues on Windows +* text=auto eol=lf + +# Explicitly enforce LF for YAML files (prevents yamllint failures on Windows) +*.yaml text eol=lf +*.yml text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3df4da0..62600e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -106,6 +106,7 @@ repos: - id: mixed-line-ending name: run mixed-line-ending description: replaces or checks mixed line ending + args: [--fix=lf] - repo: https://github.com/biomejs/pre-commit rev: "v2.4.8" From c24d58f5d2b4415532456869f51c5892c5e13efa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 2 May 2026 21:38:30 +0000 Subject: [PATCH 3/4] Address Gemini review: expand binary file types and add types: [text] to mixed-line-ending hook Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/bab1cbb7-e17e-4e51-9609-c117df8c5f91 Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com> --- .gitattributes | 5 +++++ .pre-commit-config.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/.gitattributes b/.gitattributes index a4a8034..431b691 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,3 +11,8 @@ *.jpeg binary *.gif binary *.ico binary +*.webp binary +*.avif binary +*.pdf binary +*.woff binary +*.woff2 binary diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62600e2..ddff156 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -107,6 +107,7 @@ repos: name: run mixed-line-ending description: replaces or checks mixed line ending args: [--fix=lf] + types: [text] - repo: https://github.com/biomejs/pre-commit rev: "v2.4.8" From 7eb73e22de46489902395dfc6bb86d7db830e55a Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 3 May 2026 07:42:29 +1000 Subject: [PATCH 4/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ddff156..62600e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -107,7 +107,6 @@ repos: name: run mixed-line-ending description: replaces or checks mixed line ending args: [--fix=lf] - types: [text] - repo: https://github.com/biomejs/pre-commit rev: "v2.4.8"