Skip to content

[Umbrella] Unify line endings to LF & add CRLF check workflow #1026

Description

@zhzhuang-zju

What would you like to be added:

  1. Normalize all line endings in the karmada-website repository from CRLF to LF to unify file formats.
  2. Add a GitHub Actions workflow to detect newly introduced CRLF line endings in pull requests to prevent regression.
    The command git grep --cached -I $'\r' can be used to check for carriage returns in committed text files.

Tasks:

Why is this needed:
Some documents in the karmada-website repo use CRLF line endings instead of LF.

  1. Inconsistent line endings bring messy file formatting across the whole repository.
  2. CRLF may trigger unexpected behaviors of the cherrypicker plugin when backporting changes between branches. see [cherrypicker]: reports a false conflict although the change applies cleanly kubernetes-sigs/prow#745

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions