Skip to content

Declare workflow YAML as LF and validate line endings in CI#248

Merged
ptr727 merged 1 commit into
developfrom
feature/workflow-eol-lf
Jul 6, 2026
Merged

Declare workflow YAML as LF and validate line endings in CI#248
ptr727 merged 1 commit into
developfrom
feature/workflow-eol-lf

Conversation

@ptr727

@ptr727 ptr727 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Applies the fleet's "workflow YAML is LF" policy, mirroring the hub (ptr727/ProjectTemplate).

Changes

  • .editorconfig: pin [.github/workflows/*.{yml,yaml}] end_of_line = lf after the general YAML block. Dependabot and Actions rewrite workflow YAML with LF, so declaring LF keeps it consistent instead of mixed. Non-workflow YAML stays CRLF.
  • Workflows: convert all 7 .github/workflows/*.yml to LF (line-endings-only; git diff --ignore-cr-at-eol shows no content change).
  • .editorconfig-checker.json: add (identical to the hub) to scope the checker to line endings.
  • validate-task.yml: add a Check line endings step (editorconfig-checker v3.4.0, digest-pinned) after actionlint in the lint job to enforce the policy in CI.
  • AGENTS.md: document the workflow-YAML-LF rule in the Line Endings section.
  • .gitattributes: pre-existing EOL fix folded in — the file was LF-only against the repo's CRLF default, which the new checker flags. Restored to CRLF (content-neutral) so CI is green.

LanguageData/** (byte-preserved source data, unset in .editorconfig) is untouched. Verified locally: editorconfig-checker clean, actionlint clean.

Dependabot and Actions rewrite workflow YAML with LF, so pin
.github/workflows/*.{yml,yaml} to LF in .editorconfig, convert the
existing workflows to LF, and add an editorconfig-checker CI step
(after actionlint) plus its .editorconfig-checker.json config to
enforce it. .gitattributes was LF-only against the CRLF default; fixed
to CRLF so the new check passes. Content-neutral; LanguageData/ (byte-
preserved, unset in .editorconfig) untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 6, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns this repo’s line-ending governance with the fleet policy that workflow YAML uses LF, and adds a CI guard to prevent drift. This keeps .github/workflows/*.yml stable against Dependabot / GitHub Actions rewrites and avoids mixed-EOL churn.

Changes:

  • Pin .github/workflows/*.{yml,yaml} to end_of_line = lf in .editorconfig while leaving other YAML as CRLF.
  • Add an EOL-only editorconfig-checker configuration and run it in the validate-task lint job.
  • Update documentation and normalize .gitattributes line endings to satisfy the new CI check.

Reviewed changes

Copilot reviewed 4 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
AGENTS.md Documents the workflow-YAML-LF rule and how CI enforces it.
.editorconfig Overrides workflow YAML to LF after the general YAML CRLF rule.
.editorconfig-checker.json Configures editorconfig-checker to enforce only EOL (disables other checks).
.gitattributes Restores file EOLs to match repo defaults so the new checker passes.
.github/workflows/validate-task.yml Adds a docker-pinned editorconfig-checker step in the lint job.
.github/workflows/test-pull-request.yml Line-endings-only conversion to LF per new workflow YAML policy.
.github/workflows/run-periodic-codegen-pull-request.yml Line-endings-only conversion to LF per new workflow YAML policy.
.github/workflows/run-codegen-pull-request-task.yml Line-endings-only conversion to LF per new workflow YAML policy.
.github/workflows/publish-release.yml Line-endings-only conversion to LF per new workflow YAML policy.
.github/workflows/merge-bot-pull-request.yml Line-endings-only conversion to LF per new workflow YAML policy.
.github/workflows/build-release-task.yml Line-endings-only conversion to LF per new workflow YAML policy.

@ptr727
ptr727 merged commit 50913bf into develop Jul 6, 2026
11 checks passed
@ptr727
ptr727 deleted the feature/workflow-eol-lf branch July 6, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants