feat: added section with logs containing breaking changes

This commit is contained in:
Folke Lemaitre 2022-11-24 22:05:38 +01:00
parent 2507fd5790
commit d7dbe1a43f
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 16 additions and 0 deletions

View File

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