-
Notifications
You must be signed in to change notification settings - Fork 53
fix: Update submodule, sort permissions deterministically, and stabilize ms.date #791
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
Merged
Ramses Sanchez-Hernandez (ramsessanchez)
merged 2 commits into
main
from
fix/doc-pipeline-improvements
Jun 30, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule msgraph-sdk-powershell
updated
483 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
| # | ||
| # Reverts files where the only change compared to HEAD is the ms.date | ||
| # metadata line. This prevents date-only churn from inflating PR diffs. | ||
|
|
||
| $ErrorActionPreference = 'Stop' | ||
|
|
||
| Write-Host -ForegroundColor Green "-------------Stabilizing ms.date values-------------" | ||
|
|
||
| $modifiedFiles = git diff --name-only -- '*.md' | ||
| if ($LASTEXITCODE -ne 0) { | ||
| Write-Error "git diff --name-only failed with exit code $LASTEXITCODE" | ||
| } | ||
|
|
||
| $revertedCount = 0 | ||
|
|
||
| foreach ($file in $modifiedFiles) { | ||
| if ([string]::IsNullOrWhiteSpace($file)) { continue } | ||
| if (-not (Test-Path $file)) { continue } | ||
|
|
||
| # Get the raw diff with no context, then extract only +/- content lines | ||
| $rawDiff = git diff --unified=0 -- $file | ||
| # Filter to content change lines only (skip headers, hunk markers, and | ||
| # special markers like "\ No newline at end of file") | ||
| $diffLines = $rawDiff | Where-Object { | ||
| ($_ -match '^\+[^+]' -or $_ -match '^\-[^-]') -and $_ -notmatch '^\\ ' | ||
| } | ||
|
|
||
| # Check if all changed lines are ms.date changes | ||
| $allMsDate = $true | ||
| $hasChanges = $false | ||
| foreach ($line in $diffLines) { | ||
| $hasChanges = $true | ||
| if ($line -notmatch '^[+-]ms\.date: ') { | ||
| $allMsDate = $false | ||
| break | ||
| } | ||
| } | ||
|
|
||
| if ($hasChanges -and $allMsDate) { | ||
| git checkout -- $file | ||
| if ($LASTEXITCODE -ne 0) { | ||
| Write-Warning "Failed to revert $file (exit code $LASTEXITCODE)" | ||
| } else { | ||
| $revertedCount++ | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Write-Host "Reverted $revertedCount file(s) with date-only changes." | ||
| Write-Host -ForegroundColor Green "-------------Done stabilizing ms.date-------------" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.