Skip to content

Allow CRLF line endings in release workflow whitespace checks - #64840

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:release-whitespace-check
Oct 16, 2026
Merged

Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:release-whitespace-check

Conversation

@jakebailey

Copy link
Copy Markdown
Member

These fail because we have CRLFs. Oops.

Herebyfile.mjs uses CRLF line endings, which a fresh runner's default
whitespace policy rejects when the release version is changed. Local
Git settings can hide this failure even when validation succeeds.

Apply the repository's CRLF-aware whitespace policy explicitly in the
release workflows while retaining checks for actual trailing spaces.
Release automation already limits changes to the release configuration,
and validation handles formatting. An additional whitespace check is
redundant and rejects the CRLF line endings used by Herebyfile.mjs.

Rely on the existing file allowlists and clean-tree checks, consistent
with CI, instead of maintaining a separate whitespace policy.

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.

🟢 Approval recommended

The three targeted removals address CRLF-related failures without altering the remaining workflow safeguards.

0 open findings

What changed in this PR

Removes git diff --check from three release-related workflows to avoid failures caused by CRLF line endings.

Changes:

  • Removes whitespace checks while leaving worktree and expected-file safeguards unchanged.
File Description
.github/​workflows/​sync-branch.yaml Removes whitespace checking before clean-merge verification.
.github/​workflows/​set-version.yaml Removes whitespace checking before changed-file validation.
.github/​workflows/​new-release-branch.yaml Removes whitespace checking before expected-file validation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Oct 16, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Oct 16, 2026
Merged via the queue into microsoft:main with commit abcbb2e Oct 16, 2026
29 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the release-whitespace-check branch October 16, 2026 04:38
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants