mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
code review
This commit is contained in:
parent
7b5d19e941
commit
94022cee51
@ -848,8 +848,8 @@
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "--[[",
|
||||
"end": "--]]"
|
||||
"start": "--\\[\\[",
|
||||
"end": "--\\]\\]"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -483,3 +483,20 @@ index 525e25d..ba4e68d 100644
|
||||
-TODO: Create an issue for TODO
|
||||
--}
|
||||
-sum a b = a + b
|
||||
diff --git a/init.lua b/init.lua
|
||||
new file mode 100644
|
||||
index 0000000..0ce9b1a
|
||||
--- a/init.lua
|
||||
+++ b/init.lua
|
||||
@@ -0,0 +1,11 @@
|
||||
--- TODO: Fix this
|
||||
--- In the future, make a way to build these and just start the base
|
||||
--- out with a large supply of each
|
||||
--- labels: redesign
|
||||
-local a = 1
|
||||
-
|
||||
---[[
|
||||
- TODO: Fix this todo
|
||||
- labels: urgent
|
||||
---]]
|
||||
-local b = 2
|
||||
|
||||
@ -539,17 +539,20 @@ index 0000000..0ce9b1a
|
||||
+TODO: Create an issue for TODO
|
||||
+-}
|
||||
+sum a b = a + b
|
||||
diff --git a/src/init.lua b/src/init.lua
|
||||
diff --git a/init.lua b/init.lua
|
||||
new file mode 100644
|
||||
index 0000000..0ce9b1a
|
||||
--- /dev/null
|
||||
+++ b/src/init.lua
|
||||
@@ -0,0 +1,8 @@
|
||||
+++ b/init.lua
|
||||
@@ -0,0 +1,11 @@
|
||||
+-- TODO: Fix this
|
||||
+-- In the future, make a way to build these and just start the base
|
||||
+-- out with a large supply of each
|
||||
+-- labels: redesign
|
||||
+local a = 1
|
||||
+
|
||||
+--[[
|
||||
+ TODO: Fix this todo
|
||||
+ labels: urgent
|
||||
+--]]
|
||||
+local b = 2
|
||||
|
||||
@ -100,8 +100,8 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_liquid_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'liquid'), 3)
|
||||
|
||||
def test_liquid_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 3)
|
||||
def test_lua_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
||||
|
||||
class ClosedIssueTests(unittest.TestCase):
|
||||
# Check for removed TODOs across the files specified.
|
||||
@ -190,6 +190,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_liquid_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'liquid'), 3)
|
||||
|
||||
def test_lua_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
||||
|
||||
|
||||
class IgnorePatternTests(unittest.TestCase):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user