Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Stravaig Configuration SQL Server Provider
on:
on:
push:
branches:
branches:
- main

paths-ignore:
Expand All @@ -25,7 +25,7 @@ on:
workflow_dispatch:
inputs:
isPublic:
description: 'Is Public Release'
description: 'Is Public Release'
required: false
default: "false"
isPreview:
Expand All @@ -41,7 +41,7 @@ jobs:
STRAVAIG_SOLUTION: src/Stravaig.Configuration.SqlServer.sln
STRAVAIG_TESTS: Stravaig.Configuration.SqlServer.Tests
STRAVAIG_PROJECT: Stravaig.Configuration.SqlServer

steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -64,22 +64,22 @@ jobs:
echo "Publish To NuGet: $STRAVAIG_PUBLISH_TO_NUGET"
echo "Is Preview: $STRAVAIG_IS_PREVIEW"
echo "Is Stable: $STRAVAIG_IS_STABLE"

- uses: actions/setup-dotnet@v1
name: Setup .NET 6.0 (Current LTS)
name: Setup .NET 6.0 (LTS)
with:
dotnet-version: 6.0.x

- name: Build Solution
run: dotnet build $STRAVAIG_SOLUTION --configuration Release

- name: Run Tests
run: dotnet test src/$STRAVAIG_TESTS/$STRAVAIG_TESTS.csproj --configuration Release

- name: Package Preview Release
if: ${{ env.STRAVAIG_IS_PREVIEW == 'true' }}
run: dotnet pack ./src/$STRAVAIG_PROJECT/$STRAVAIG_PROJECT.csproj --configuration Release --output ./out --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" --version-suffix "$STRAVAIG_PACKAGE_VERSION_SUFFIX" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

- name: Package Stable Release
if: ${{ env.STRAVAIG_IS_STABLE == 'true' }}
run: dotnet pack ./src/$STRAVAIG_PROJECT/$STRAVAIG_PROJECT.csproj --configuration Release --output ./out --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
Expand All @@ -104,7 +104,7 @@ jobs:

- name: Archive Simulated Release Information
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'false' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: simulated-release-information
path: |
Expand All @@ -116,20 +116,20 @@ jobs:

- name: Archive Release Notes
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'true' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: release-information
path: |
contributors.md
release-notes/full-release-notes.md
release-notes/release-notes-${{ env.STRAVAIG_PACKAGE_FULL_VERSION }}.md
out/**

- name: Create Release
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'true' }}
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$assets = @();
$assets += "./out/*.nupkg"
Expand All @@ -139,7 +139,7 @@ jobs:
$assets += "README.md"
$assets += "./release-notes/release-notes-${{ env.STRAVAIG_PACKAGE_FULL_VERSION }}.md"
./Create-Release.ps1 -NotesFile "./release-body.md" -Assets $assets

- name: Bump version
#IF Publishing & Stable release
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'true' && env.STRAVAIG_IS_STABLE == 'true' }}
Expand All @@ -151,7 +151,7 @@ jobs:
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'true' && env.STRAVAIG_IS_STABLE == 'true' }}
shell: pwsh
run: ./Reset-WipReleaseNotes.ps1

- name: Commit post release updates
#IF Publishing & Stable release
if: ${{ env.STRAVAIG_PUBLISH_TO_NUGET == 'true' && env.STRAVAIG_IS_STABLE == 'true' }}
Expand Down
16 changes: 5 additions & 11 deletions contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@

This is a list of all the contributors to this repository in ascending order by the contributor name.

**Colin Mackay** contributed 86 commits from Friday, 28 January, 2022 @ 22:52:08 +00:00 to Monday, 14 November, 2022 @ 21:28:37 +00:00.
**Colin Mackay** contributed 107 commits from Friday, 28 January, 2022 @ 22:52:08 +00:00 to Monday, 2 December, 2024 @ 22:28:08 +00:00.

**dependabot[bot]** contributed 29 commits from Monday, 31 January, 2022 @ 14:31:26 +00:00 to Monday, 14 November, 2022 @ 20:56:14 +00:00.
**dependabot[bot]** contributed 48 commits from Monday, 31 January, 2022 @ 14:31:26 +00:00 to Wednesday, 2 August, 2023 @ 14:17:50 +01:00.

**StravaigBot** contributed 4 commits from Thursday, 3 February, 2022 @ 12:20:25 +00:00 to Wednesday, 9 February, 2022 @ 22:29:07 +00:00.
**StravaigBot** contributed 5 commits from Thursday, 3 February, 2022 @ 12:20:25 +00:00 to Monday, 14 November, 2022 @ 21:56:12 +00:00.

## Summary

:octocat: 119 commits in total.
:octocat: 160 commits in total.

:date: From Friday, 28 January, 2022 @ 22:52:08 +00:00.

:date: Until Monday, 14 November, 2022 @ 21:28:37 +00:00.

:1st_place_medal: Gold medal to Colin Mackay with 86 commits which represents 72.27 % of all commits.

:2nd_place_medal: Silver medal to dependabot[bot] with 29 commits which represents 24.37 % of all commits.

:3rd_place_medal: Bronze medal to StravaigBot with 4 commits which represents 3.36 % of all commits.
:date: Until Monday, 2 December, 2024 @ 22:28:08 +00:00.

63 changes: 17 additions & 46 deletions list-contributors.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Get-IgnoredNamesList($IgnoredNamesPath, $AkaContributors)
}
}

$IgnoredNamesPath = Get-ConfigFilePath -configFilePath $IgnoredNamesPath -defaultConfigFilePath "$PSScriptRoot/.stravaig/list-contributor-ignore-names.txt" -friendlyName "list of ignored names";
$IgnoredNamesPath = Get-ConfigFilePath -configFilePath $IgnoredNamesPath -defaultConfigFilePath "$PSScriptRoot/.stravaig/list-contributor-ignore-names.txt" -friendlyName "list of ignored names";
if ($null -ne $IgnoredNamesPath)
{
$ignoredNames = Get-Content -Path $IgnoredNamesPath;
Expand Down Expand Up @@ -156,8 +156,8 @@ function Get-InitialContributors($AkaFilePath)
}
catch
{
# For some reason it isn't stopping the script when erroring with
# -ErrorAction Stop in the ConvertFrom-Json
# For some reason it isn't stopping the script when erroring with
# -ErrorAction Stop in the ConvertFrom-Json
throw $_
}

Expand Down Expand Up @@ -218,7 +218,7 @@ function Get-InitialContributors($AkaFilePath)
$contributors = Get-InitialContributors -AkaFilePath $AkaFilePath;
$ignoredNamesList = Get-IgnoredNamesList -IgnoredNamesPath $IgnoredNamesPath -AkaContributors $contributors
$ignoredEmailsList = Get-IgnoredEmailsList -IgnoredEmailsPath $IgnoredEmailsPath -AkaContributors $contributors
& git log --format="\`"%ai\`",\`"%an\`",\`"%ae\`",\`"%H\`"" > raw-contributors.csv
& git log --format="`"%ai`",`"%an`",`"%ae`",`"%H`"" > raw-contributors.csv
$commits = Import-Csv raw-contributors.csv -Header Time,Name,Email,Hash | Sort-Object Time;
Remove-Item .\raw-contributors.csv

Expand All @@ -241,9 +241,9 @@ for($i = 0; $i -lt $totalCommits; $i++)
$contributor = New-Object -TypeName PSObject -Property @{
Names=@($nextCommit.Name);
PrimaryName = $nextCommit.Name;
Emails=@($nextCommit.Email);
FirstCommit=$commitTime;
LastCommit=$commitTime;
Emails=@($nextCommit.Email);
FirstCommit=$commitTime;
LastCommit=$commitTime;
CommitCount=1
};
$contributors += $contributor;
Expand All @@ -252,13 +252,13 @@ for($i = 0; $i -lt $totalCommits; $i++)
}
else
{
if ((-not(Test-IgnoredItem -Item $nextCommit.Email -IgnoredItemsList $ignoredEmailsList)) -and
if ((-not(Test-IgnoredItem -Item $nextCommit.Email -IgnoredItemsList $ignoredEmailsList)) -and
(-not (Test-Email -Contributor $contributor -CommitterEmail $nextCommit.Email)))
{
Write-Verbose "Adding email `"$($nextCommit.Email)`" to $($contributor.PrimaryName) from commit $($nextCommit.Hash)."
$contributor.Emails += $nextCommit.Email;
}
if ((-not(Test-IgnoredItem -Item $nextCommit.Name -IgnoredItemsList $ignoredNamesList)) -and
if ((-not(Test-IgnoredItem -Item $nextCommit.Name -IgnoredItemsList $ignoredNamesList)) -and
(-not (Test-Name -Contributor $contributor -CommitterName $nextCommit.Name)))
{
Write-Verbose "Adding name `"$($nextCommit.Name)`" to $($contributor.PrimaryName) from commit $($nextCommit.Hash)."
Expand All @@ -282,20 +282,20 @@ $contributors = $contributors | Where-Object CommitCount -gt 0
$isDescending = $SortDirection -eq "Descending";
Switch($SortOrder)
{
"Name" {
"Name" {
$contributors = $contributors | Sort-Object PrimaryName -Descending:$isDescending;
$textOrderBy = "contributor name";
}
"FirstCommit" {
$contributors = $contributors | Sort-Object FirstCommit -Descending:$isDescending;
$contributors = $contributors | Sort-Object FirstCommit -Descending:$isDescending;
$textOrderBy = "first commit date";
}
"LastCommit" {
$contributors = $contributors | Sort-Object LastCommit -Descending:$isDescending;
$contributors = $contributors | Sort-Object LastCommit -Descending:$isDescending;
$textOrderBy = "last commit date";
}
"CommitCount" {
$contributors = $contributors | Sort-Object CommitCount -Descending:$isDescending;
$contributors = $contributors | Sort-Object CommitCount -Descending:$isDescending;
$textOrderBy = "number of commits";
}
}
Expand Down Expand Up @@ -331,14 +331,14 @@ foreach($contributor in $contributors)
$end = $contributor.LastCommit.ToString($TimeFormat);
}
else {
$end = $contributor.LastCommit.ToString($DateTimeFormat);
$end = $contributor.LastCommit.ToString($DateTimeFormat);
}
"**$name**$aka contributed $numCommits $commitMsg" | Out-File $OutputFile -Append -Encoding utf8 -NoNewline
if ($numCommits -eq 1)
{
" on $start." | Out-File $OutputFile -Append -Encoding utf8
}
else
else
{
" from $start to $end." | Out-File $OutputFile -Append -Encoding utf8
}
Expand All @@ -348,42 +348,13 @@ foreach($contributor in $contributors)
"" | Out-File $OutputFile -Append -Encoding utf8

$firstCommit = $commits[0];
$firstCommitMsg = [DateTime]::ParseExact($firstCommit.Time, "yyyy-MM-dd HH:mm:ss zzz", [CultureInfo]::InvariantCulture).ToString($DateTimeFormat);
$firstCommitMsg = [DateTime]::ParseExact($firstCommit.Time, "yyyy-MM-dd HH:mm:ss zzz", [CultureInfo]::InvariantCulture).ToString($DateTimeFormat);
$lastCommit = $commits[$totalCommits - 1];
$lastCommitMsg = [DateTime]::ParseExact($lastCommit.Time, "yyyy-MM-dd HH:mm:ss zzz", [CultureInfo]::InvariantCulture).ToString($DateTimeFormat);
$lastCommitMsg = [DateTime]::ParseExact($lastCommit.Time, "yyyy-MM-dd HH:mm:ss zzz", [CultureInfo]::InvariantCulture).ToString($DateTimeFormat);

":octocat: $totalCommits commits in total." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8
":date: From $firstCommitMsg." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8
":date: Until $lastCommitMsg." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8

$topCommitters = ($contributors | Sort-Object CommitCount -Descending);
$topCommitter = $topCommitters[0];
$name = $topCommitter.PrimaryName;
$commitCount = $topCommitter.CommitCount;
$percentage = $topCommitter.CommitCount / $totalCommits;

":1st_place_medal: Gold medal to $name with $commitCount commits which represents "+("{0:P2}" -f $percentage)+" of all commits." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8

$topCommitter = $topCommitters[1];
if ($null -ne $topCommitter)
{
$name = $topCommitter.PrimaryName;
$commitCount = $topCommitter.CommitCount;
$percentage = $topCommitter.CommitCount / $totalCommits;
":2nd_place_medal: Silver medal to $name with $commitCount commits which represents "+("{0:P2}" -f $percentage)+" of all commits." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8
}

$topCommitter = $topCommitters[2];
if ($null -ne $topCommitter)
{
$name = $topCommitter.PrimaryName;
$commitCount = $topCommitter.CommitCount;
$percentage = $topCommitter.CommitCount / $totalCommits;
":3rd_place_medal: Bronze medal to $name with $commitCount commits which represents "+("{0:P2}" -f $percentage)+" of all commits." | Out-File $OutputFile -Append -Encoding utf8
"" | Out-File $OutputFile -Append -Encoding utf8
}
15 changes: 6 additions & 9 deletions release-notes/wip-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@

Date: ???

### Bugs

### Features

### Miscellaneous

### Dependent Packages

- No changes
- Bump Microsoft.Extensions.Configuration
- Bump Microsoft.Extensions.Configuration.Abstractions
- Bump Microsoft.Extensions.Configuration.Binder
- Bump Microsoft.Extensions.Logging.Abstractions
- Bump Microsoft.SourceLink.GitHub"
- Bump System.Data.SqlClient

---


Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.FeatureManagement" Version="2.5.1" />
<PackageReference Include="Microsoft.FeatureManagement" Version="2.6.1" />
<PackageReference Include="Stravaig.Configuration.Diagnostics.Logging" Version="2.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="coverlet.collector" Version="3.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="Stravaig.Extensions.Logging.Diagnostics" Version="2.1.0" />
<PackageReference Include="Stravaig.Extensions.Logging.Diagnostics" Version="3.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Stravaig.Configuration.SqlServer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "__BuildAndDeploy", "__Build
..\Reset-WipReleaseNotes.ps1 = ..\Reset-WipReleaseNotes.ps1
..\Set-Version.ps1 = ..\Set-Version.ps1
..\version.txt = ..\version.txt
..\list-contributors.ps1 = ..\list-contributors.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "__Documentation", "__Documentation", "{61C05782-A253-4EDD-9463-04912EB73870}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />
</ItemGroup>
</Project>
Loading