mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-10-08 19:22:14 +00:00
feat(ui): highlight reverted breaking changes as a breaking change.
This commit is contained in:
parent
6c3bda4aca
commit
0efac749c3
2 changed files with 2 additions and 2 deletions
|
@ -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 })
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue