Skip to content

Commit 781f1ff

Browse files
committed
fix(scoop-update): Skip git log started with '[chore]' or '(chore)'
1 parent 26a859f commit 781f1ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libexec/scoop-update.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function update_scoop() {
114114

115115
$res = $lastexitcode
116116
if ($show_update_log) {
117-
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'"
117+
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'" | Where-Object { $_ -notlike '* ?chore*' }
118118
}
119119

120120
Pop-Location
@@ -155,7 +155,7 @@ function update_scoop() {
155155
$previousCommit = (Invoke-Expression 'git rev-parse HEAD')
156156
git_pull -q
157157
if ($show_update_log) {
158-
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'"
158+
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'" | Where-Object { $_ -notlike '* ?chore*' }
159159
}
160160
Pop-Location
161161
Write-Host ' Done.'

0 commit comments

Comments
 (0)