Skip to content

Commit 0efac74

Browse files
committed
feat(ui): highlight reverted breaking changes as a breaking change.
1 parent 6c3bda4 commit 0efac74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/lazy/view/render.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ function M:log(task)
526526
for _, line in ipairs(lines) do
527527
local ref, msg, time = line:match("^(%w+) (.*) (%(.*%))$")
528528
if msg then
529-
if msg:find("^%S+!:") then
529+
if msg:find("^%S+!:") or msg:find("^Revert \"%S+!:") then
530530
self:diagnostic({ message = "Breaking Changes", severity = vim.diagnostic.severity.WARN })
531531
end
532532
self:append(ref:sub(1, 7) .. " ", "LazyCommit", { indent = 6 })

lua/lazy/view/sections.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ return {
4646
return
4747
end
4848
for _, line in ipairs(vim.split(task:output(), "\n")) do
49-
if line:find("^%w+ %S+!:") then
49+
if line:find("^%w+ %S+!:") or line:find("^%w+ Revert \"%S+!:")then
5050
return true
5151
end
5252
end

0 commit comments

Comments
 (0)