Adding Support for Resolving/Unresolving Discussions (#39)
This MR adds the ability to mark discussions as resolved or unresolved. This is important to the review process.
This commit is contained in:
committed by
GitHub
parent
1676992266
commit
d25c62ae9f
@@ -284,7 +284,17 @@ local extract = function(t, property)
|
||||
return resultTable
|
||||
end
|
||||
|
||||
local remove_last_chunk = function(sentence)
|
||||
local words = {}
|
||||
for word in sentence:gmatch("%S+") do
|
||||
table.insert(words, word)
|
||||
end
|
||||
table.remove(words, #words)
|
||||
local sentence_without_last = table.concat(words, " ")
|
||||
return sentence_without_last
|
||||
end
|
||||
|
||||
M.remove_last_chunk = remove_last_chunk
|
||||
M.extract = extract
|
||||
M.contains = contains
|
||||
M.attach_uuid = attach_uuid
|
||||
|
||||
Reference in New Issue
Block a user