Skip to content

Commit

Permalink
feat: added section with logs containing breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 24, 2022
1 parent 2507fd5 commit d7dbe1a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/lazy/view/sections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d7dbe1a

Please sign in to comment.