Skip to content

Commit

Permalink
Replaces v7 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Dec 14, 2023
1 parent 5d7ab92 commit 317ef63
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if ( (Get-Command 'nbgv' -CommandType Application -ErrorAction SilentlyContinue)
}

$parent = $PSScriptRoot
$parent = [string]::IsNullOrEmpty($parent) ? $pwd.Path : $parent
$parent = if ([string]::IsNullOrEmpty($parent)) { $pwd.Path } else { $parent }
$src = Join-Path $parent -ChildPath "src"
$docs = Join-Path $parent -ChildPath "docs"
$publish = Join-Path $parent -ChildPath "publish" -AdditionalChildPath 'Import-ConfigData'
Expand Down Expand Up @@ -143,7 +143,20 @@ function Test {

function ChangeLog {
param ()
"# Changelog"

# Start log at >0.1.11
for ($m = $Minor; $m -ge 1; $m--) {
for ($b = $Build; $b -gt 11; $b--) {
"## v$Major.$m.$b"
nbgv get-commits "$Major.$m.$b" | ForEach-Object {
$hash, $ver, $message = $_.split(' ')
$shortHash = $hash.Substring(0, 7)

"- [$shortHash](https://github.com/cdhunt/potel/commit/$hash) $($message -join ' ')"
}
}
}
}

function Commit {
Expand Down

0 comments on commit 317ef63

Please sign in to comment.