Skip to content

Commit f37e539

Browse files
authored
ci: print statement debugging CI only failures is fun (#1660)
1 parent 187c804 commit f37e539

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docgen/docgen.lua

+3
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,22 @@ docgen.get_module_top_comment = function(buf)
6969
local node = ts.get_first_node_recursive("comment", { buf = buf, ft = "lua" })
7070

7171
if not node then
72+
print("no comment node")
7273
return
7374
end
7475

7576
-- Verify if it's the first line
7677
local start_row = node:range()
7778
if start_row ~= 0 then
79+
print("doens't start of the first line")
7880
return
7981
end
8082

8183
local comment = vim.split(ts.get_node_text(node, buf), "\n")
8284

8385
-- Stops execution if it's not a multiline comment
8486
if comment[1] ~= [[--[[]] or comment[#comment] ~= "--]]" then
87+
print("not a block comment")
8588
return
8689
end
8790

0 commit comments

Comments
 (0)