Skip to content

Commit 0973b1b

Browse files
[Build] Updated to v2.0.0
1 parent 3d1dfe3 commit 0973b1b

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
## v2.0.0
4+
Initial version for public release, comprising the following visual tree traveling methods:
5+
- FindChild
6+
- FindChildByType
7+
- FindDirectChild
8+
- FindDirectChildByType
9+
- FindAllChildren
10+
- FindAllChildrenByType
11+
- FindParent
12+
- FindParentByType
13+
- FindParentByLevel
14+
- GetParentExtended
15+
16+
[ReadMe Documentation](https://github.com/davidlebourdais/ExtendedWPFVisualTreeHelper/blob/v2.0.0/README.md).

ExtendedWPFVisualTreeHelper/ExtendedWPFVisualTreeHelper.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageDescription>A compilation of useful WPF visual tree helpers.</PackageDescription>
77
<PackageTags>WPF;Visual Tree;VisualTreeHelper</PackageTags>
88
<UseWPF>true</UseWPF>
9-
<Version>1.0.5</Version>
9+
<Version>2.0.0</Version>
1010
<Authors>David Le Bourdais</Authors>
1111
<Copyright>Copyright © 2019-2020</Copyright>
1212
<GenerateDocumentationFile>true</GenerateDocumentationFile>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WPF Visual Tree Helper
22

3-
[![Build Status](https://dev.azure.com/davidlebourdais/ExtendedWPFVisualTreeHelper/_apis/build/status/davidlebourdais.ExtendedWPFVisualTreeHelper?branchName=master)](https://dev.azure.com/davidlebourdais/ExtendedWPFVisualTreeHelper/_build/latest?definitionId=1&branchName=master)
3+
[![Build Status](https://dev.azure.com/davidlebourdais/ExtendedWPFVisualTreeHelper/_apis/build/status/davidlebourdais.ExtendedWPFVisualTreeHelper?branchName=master)](https://dev.azure.com/davidlebourdais/ExtendedWPFVisualTreeHelper/_build/latest?definitionId=11&branchName=master)
44
[![NuGet](https://img.shields.io/nuget/v/ExtendedWPFVisualTreeHelper.svg)](https://www.nuget.org/packages/ExtendedWPFVisualTreeHelper)
55
[![Issues](https://img.shields.io/github/issues/davidlebourdais/ExtendedWPFVisualTreeHelper.svg)](https://github.com/davidlebourdais/ExtendedWPFVisualTreeHelper/issues)
66

getchangelogdiff.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function Get-Text-File-Part([String] $path, [String] $start_pattern, [String] $s
3939
$ChangeLogMessage = ""
4040
$VersionTagRegex = "v\d+\.\d+\.\d+(\s|-|$)"
4141
$ChangeLogHeaderRegex = "#+ v\d+\.\d+\.\d+(\s|-|$)"
42+
$invalid_current_tag = $false
4243

4344
if ([System.String]::IsNullOrWhiteSpace($TagVersion)) {
4445
Write-Host "##vso[task.LogIssue type=error;]Tag version is not provided"
@@ -49,6 +50,7 @@ else {
4950
if (-not($TagVersion -match $VersionTagRegex)) {
5051
Write-Host "Warning: Passed tag version has an invalid format, processing it anyway to get 'non release' changelog"
5152
$CurrentReleaseLogRegex = "#+ " + $TagVersion.Replace(".", "\.") + ".*$"
53+
$invalid_current_tag = $true
5254
}
5355
$ChangeLogMessage = Get-Text-File-Part $ChangeLogFilePath $CurrentReleaseLogRegex $ChangeLogHeaderRegex
5456

@@ -60,10 +62,13 @@ else {
6062
Out-File -FilePath $ChangeLogDiffWritePath -InputObject $ChangeLogMessage -Encoding ASCII
6163
}
6264
}
63-
else {
65+
elseif (-not($invalid_current_tag)) {
6466
Write-Host "##vso[task.LogIssue type=warning;]No changelog message found for passed tag version"
6567
Write-Host "##vso[task.complete result=SucceededWithIssues;]No specific changelog"
6668
}
69+
else { #no warning if no or bad tag was passed to not make build fail
70+
Write-Host "Warning: Bad passed tag version and no draft changelog message found"
71+
}
6772
}
6873
else {
6974
Write-Host $("##vso[task.LogIssue type=warning;]" + $("Cannot find " + $ChangeLogFilePath + "."))

0 commit comments

Comments
 (0)