Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0bf5d13
Add Setup-BranchRuleset.ps1 from repo-template
Chris-Wolfgang Apr 15, 2026
7c76197
Replace template placeholders with actual repo name
Chris-Wolfgang Apr 15, 2026
8070807
Upgrade pr.yaml to v3 (Gated)
Chris-Wolfgang Apr 15, 2026
a55e520
Sync missing template files from repo-template
Chris-Wolfgang Apr 16, 2026
9a10ff0
Address Copilot review comments on PR #19
Chris-Wolfgang Apr 17, 2026
018a9cf
Sync template-tracked file contents from repo-template
Chris-Wolfgang Apr 25, 2026
821107e
Sync missing files from repo-template
Chris-Wolfgang Apr 25, 2026
38a9116
Remove stale files no longer in repo-template
Chris-Wolfgang Apr 25, 2026
a440d4f
Restore scripts/ to match main
Chris-Wolfgang Apr 25, 2026
49c67f6
Sync template-tracked file contents from repo-template
Chris-Wolfgang Apr 25, 2026
ccef4f4
Restore scripts/ to match main
Chris-Wolfgang Apr 25, 2026
22f1980
Configure repository from template
Chris-Wolfgang Apr 25, 2026
e49d26d
Use full project name Wolfgang.Extensions.Logging.InMemoryLogger
Chris-Wolfgang Apr 25, 2026
f33c1c0
Fill DocFX placeholders in docfx_project/docfx.json
Chris-Wolfgang Apr 25, 2026
4a60233
Merge remote-tracking branch 'origin/main' into setup/configure-from-…
Chris-Wolfgang Apr 25, 2026
ca3a1c8
Revert BannedSymbols.txt to match main
Chris-Wolfgang Apr 25, 2026
57cdded
Fill {{PROJECT_NAME}} placeholder in BannedSymbols.txt
Chris-Wolfgang Apr 25, 2026
397c9d8
Merge branch 'main' into setup/configure-from-template-20260425-183114
Chris-Wolfgang Apr 25, 2026
ee14f41
Merge pull request #23 from Chris-Wolfgang/setup/configure-from-templ…
Chris-Wolfgang Apr 26, 2026
0197cf4
Remove template-only files now that the repo is configured
Chris-Wolfgang Apr 26, 2026
b3438e8
Fill remaining DocFX content placeholders
Chris-Wolfgang Apr 26, 2026
bda000f
Merge pull request #26 from Chris-Wolfgang/chore/remove-template-left…
Chris-Wolfgang Apr 26, 2026
1d1ea8e
Merge branch 'main' into docs/fill-docfx-content-placeholders
Chris-Wolfgang Apr 26, 2026
a6691e5
Merge pull request #27 from Chris-Wolfgang/docs/fill-docfx-content-pl…
Chris-Wolfgang Apr 26, 2026
be71d81
Merge main into develop to pull in template-sync updates
Chris-Wolfgang Apr 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
627 changes: 371 additions & 256 deletions .editorconfig

Large diffs are not rendered by default.

86 changes: 0 additions & 86 deletions .github/workflows/create-labels.yaml

This file was deleted.

83 changes: 74 additions & 9 deletions .github/workflows/docfx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,84 @@ jobs:
# Sorting descending by Stable places stable (1) before prerelease (0) of the same version.
$stable = if ([string]::IsNullOrEmpty($Matches['prerelease'])) { 1 } else { 0 }
[PSCustomObject]@{
Tag = $t
Major = [int]$Matches['major']
Minor = [int]$Matches['minor']
Patch = [int]$Matches['patch']
Stable = $stable
Tag = $t
Major = [int]$Matches['major']
Minor = [int]$Matches['minor']
Patch = [int]$Matches['patch']
Stable = $stable
PreRelease = $Matches['prerelease']
}
}
}

# Sort descending by SemVer components so newest stable version comes first
$orderedTags = $taggedVersions |
Sort-Object -Property Major, Minor, Patch, Stable -Descending |
Select-Object -ExpandProperty Tag
# Sort descending by full SemVer precedence (Major, Minor, Patch, Stable, PreRelease)
# Convert to a mutable list so we can use a custom comparison for proper SemVer prerelease ordering.
$tagList = [System.Collections.Generic.List[object]]::new()
foreach ($item in $taggedVersions) {
[void]$tagList.Add($item)
}

$comparison = [System.Comparison[object]]{
param($a, $b)

# Compare Major, Minor, Patch (descending)
if ($a.Major -ne $b.Major) { return [Math]::Sign($b.Major - $a.Major) }
if ($a.Minor -ne $b.Minor) { return [Math]::Sign($b.Minor - $a.Minor) }
if ($a.Patch -ne $b.Patch) { return [Math]::Sign($b.Patch - $a.Patch) }

# Compare Stable flag (descending: stable=1 > prerelease=0)
if ($a.Stable -ne $b.Stable) { return [Math]::Sign($b.Stable - $a.Stable) }

# At this point, Major/Minor/Patch/Stable are equal.
# If both are stable (no prerelease), they are equal for our purposes.
$aPre = [string]$a.PreRelease
$bPre = [string]$b.PreRelease

if ([string]::IsNullOrEmpty($aPre) -and [string]::IsNullOrEmpty($bPre)) { return 0 }

# Both should be prereleases when Stable is 0, but handle any unexpected cases gracefully.
if ([string]::IsNullOrEmpty($aPre) -and -not [string]::IsNullOrEmpty($bPre)) { return -1 }
if (-not [string]::IsNullOrEmpty($aPre) -and [string]::IsNullOrEmpty($bPre)) { return 1 }

$aIds = $aPre -split '\.'
$bIds = $bPre -split '\.'
$maxLen = [Math]::Max($aIds.Length, $bIds.Length)

for ($i = 0; $i -lt $maxLen; $i++) {
if ($i -ge $aIds.Length) { return -1 } # a has fewer identifiers -> lower precedence
if ($i -ge $bIds.Length) { return 1 } # b has fewer identifiers -> lower precedence

$aId = $aIds[$i]
$bId = $bIds[$i]

$aIsNum = [int]::TryParse($aId, [ref]([int]$null))
$bIsNum = [int]::TryParse($bId, [ref]([int]$null))

if ($aIsNum -and $bIsNum) {
$aVal = [int]$aId
$bVal = [int]$bId
if ($aVal -ne $bVal) { return [Math]::Sign($bVal - $aVal) }
}
elseif ($aIsNum -and -not $bIsNum) {
# Numeric identifiers have lower precedence than non-numeric.
return 1
}
elseif (-not $aIsNum -and $bIsNum) {
return -1
}
else {
$cmp = [string]::CompareOrdinal($aId, $bId)
if ($cmp -ne 0) { return -$cmp }
}
}

# All identifiers equal
return 0
}

$tagList.Sort($comparison)
# We implemented comparison for descending SemVer order directly in the comparison.
$orderedTags = $tagList | Select-Object -ExpandProperty Tag

# Build the base path for this GitHub Pages project site: /<repo-name>/
# GITHUB_REPOSITORY is "owner/repo"; we need just the repo name.
Expand Down
Loading