mirror of https://github.com/folke/lazy.nvim.git
feat: added section with logs containing breaking changes
This commit is contained in:
parent
2507fd5790
commit
d7dbe1a43f
|
@ -61,6 +61,22 @@ return {
|
|||
end,
|
||||
title = "Updated",
|
||||
},
|
||||
{
|
||||
filter = function(plugin)
|
||||
return has_task(plugin, function(task)
|
||||
if task.type ~= "log" then
|
||||
return
|
||||
end
|
||||
local lines = vim.split(task.output, "\n")
|
||||
for _, line in ipairs(lines) do
|
||||
if line:find("^%w+ %S+!:") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end)
|
||||
end,
|
||||
title = "Breaking Changes",
|
||||
},
|
||||
{
|
||||
filter = function(plugin)
|
||||
return has_task(plugin, function(task)
|
||||
|
|
Loading…
Reference in New Issue