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 })

View file

@ -46,7 +46,7 @@ return {
return
end
for _, line in ipairs(vim.split(task:output(), "\n")) do
if line:find("^%w+ %S+!:") then
if line:find("^%w+ %S+!:") or line:find("^%w+ Revert \"%S+!:")then
return true
end
end