Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crlf check to the markdownlint PR check workflow #26664

Closed
wants to merge 4 commits into from

Conversation

OnkarRuikar
Copy link
Contributor

Addresses #26609 (comment)

To avoid files with crlf line endings in the repo this adds a check in PR check workflow.

@OnkarRuikar OnkarRuikar requested review from a team as code owners May 9, 2023 06:44
@OnkarRuikar OnkarRuikar requested review from dipikabh and removed request for a team May 9, 2023 06:44
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label May 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Preview URLs

(comment last updated: 2023-05-20 00:22:55)

@OnkarRuikar OnkarRuikar force-pushed the line_endings branch 2 times, most recently from 0758bd1 to 3605b9f Compare May 9, 2023 06:55
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs and removed Content:CSS Cascading Style Sheets docs labels May 9, 2023
@OnkarRuikar OnkarRuikar marked this pull request as draft May 9, 2023 07:02
@OnkarRuikar OnkarRuikar force-pushed the line_endings branch 4 times, most recently from d5ced04 to 0cedf24 Compare May 9, 2023 08:57
@OnkarRuikar
Copy link
Contributor Author

Closing this as couldn't reproduce the issue in content workflows where a file with crlf is checked out.

As per current setup people can accidentally commit files with CRLF. And those who(including workflows) checkout the code have to make sure they are using auto LF settings to get the corrected version, and when they commit the file it gets fixed in the repo. So forcing LF check on everyone for rare CRLF commits would be overkill.

If we really need this then let me know. There are various approaches and places to implement this.

@OnkarRuikar OnkarRuikar deleted the line_endings branch July 31, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants