Skip to content

Commit

Permalink
馃帹 Replace Write-Host with Write-Information
Browse files Browse the repository at this point in the history
  • Loading branch information
michielthai committed Jan 29, 2020
1 parent f5d33a1 commit e80dab6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PSGitChangeLog/Public/Get-ConventialCommit.Tools.ps1
Expand Up @@ -26,7 +26,7 @@ Function Get-ConventialCommit {
If ( $CommitMessage -match ("{0}" -f $CurrentCode )) {
$Match = $matches[0]
$Matchedcode = $CurrentCode
Write-Host $Matchedcode
Write-Information $Matchedcode
# Scope is mentioned after the code with no semicolon ':'
If ( $CommitMessage -match ("{0}\(\w*\)" -f $Matchedcode )) {
$Match = $matches[0]
Expand All @@ -35,7 +35,7 @@ Function Get-ConventialCommit {
If ($Match -match "\(\w*\)") {
$MatchedScope = Get-ConventialCommitScope $matches[0]
}
Write-Host $Matchedcode mentions Scope $MatchedScope
Write-Information "$Matchedcode mentions Scope $MatchedScope"
}
} Else {
# Scope is mentioned between brackets () before a semecolon ':'
Expand All @@ -47,7 +47,7 @@ Function Get-ConventialCommit {
If ($Match -match "\(\w*\):") {
$MatchedScope = Get-ConventialCommitScope $matches[0]
}
Write-Host $Matchedcode with codebase $codebase mentions Scope $MatchedScope
Write-Information "$Matchedcode with codebase $codebase mentions Scope $MatchedScope"
}
}
If ($Matchedcode) {
Expand Down Expand Up @@ -123,7 +123,7 @@ Function Get-ConventialCommitScope2 {
If ($Match -match "\(\w*\)$SC") {
$MatchedScope = Get-ConventialCommitScope $matches[0]
}
Write-Host $Matchedcode with codebase $codebase mentions Scope $MatchedScope
Write-Information "$Matchedcode with codebase $codebase mentions Scope $MatchedScope"
}
$Code
$CodeBase
Expand Down

0 comments on commit e80dab6

Please sign in to comment.