From 0efac749c387ceafc55e886de6dd207f6b45a1b6 Mon Sep 17 00:00:00 2001 From: schilkp Date: Thu, 25 Sep 2025 15:07:38 +0200 Subject: [PATCH] feat(ui): highlight reverted breaking changes as a breaking change. --- lua/lazy/view/render.lua | 2 +- lua/lazy/view/sections.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index b545af0..2a49848 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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 }) diff --git a/lua/lazy/view/sections.lua b/lua/lazy/view/sections.lua index c1681a8..1cb7aa9 100644 --- a/lua/lazy/view/sections.lua +++ b/lua/lazy/view/sections.lua @@ -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