feat(ui): highlight reverted breaking changes as a breaking change.

This commit is contained in:
schilkp 2025-09-25 15:07:38 +02:00
commit 0efac749c3
2 changed files with 2 additions and 2 deletions

View file

@ -526,7 +526,7 @@ function M:log(task)
for _, line in ipairs(lines) do
local ref, msg, time = line:match("^(%w+) (.*) (%(.*%))$")
if msg then
if msg:find("^%S+!:") then
if msg:find("^%S+!:") or msg:find("^Revert \"%S+!:") then
self:diagnostic({ message = "Breaking Changes", severity = vim.diagnostic.severity.WARN })
end
self:append(ref:sub(1, 7) .. " ", "LazyCommit", { indent = 6 })