mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Added support for makefile language.
Signed-off-by: Aingeru <aingeru.develop@gmail.com>
This commit is contained in:
parent
e1fcaabf3b
commit
2bda10fabb
@ -159,6 +159,7 @@ These will be applied automatically to every issue, but will be overrode by any
|
||||
- Julia
|
||||
- Kotlin
|
||||
- Less
|
||||
- Makefile
|
||||
- Markdown
|
||||
- Nix
|
||||
- Objective-C
|
||||
|
||||
@ -764,5 +764,14 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Makefile",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "#"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@ -375,3 +375,20 @@ index 0000000..a6c6cb0
|
||||
- TODO fill this with something useful
|
||||
- */
|
||||
}
|
||||
diff --git a/tests/Makefile b/tests/Makefile
|
||||
index 2996176..7545ccf 100644
|
||||
--- a/tests/Makefile
|
||||
+++ b/tests/Makefile
|
||||
@@ -1,12 +1,9 @@
|
||||
-# TODO change name.
|
||||
NAME = asm
|
||||
|
||||
-# TODO source files must be explicitly named.
|
||||
SRC = $(shell find mandatory/src -name "*.asm")
|
||||
OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
|
||||
.PHONY: all
|
||||
all: $(NAME)
|
||||
$(NAME): $(OBJ)
|
||||
- # TODO create the directory.
|
||||
$(AR) rc $@ $(OBJ)
|
||||
|
||||
|
||||
@ -417,3 +417,21 @@ index 0000000..a6c6cb0
|
||||
+ */
|
||||
+}
|
||||
+
|
||||
diff --git a/tests/Makefile b/tests/Makefile
|
||||
new file mode 100644
|
||||
index 0000000..2996176
|
||||
--- /dev/null
|
||||
+++ b/tests/Makefile
|
||||
@@ -0,0 +1,12 @@
|
||||
+# TODO change name.
|
||||
+NAME = asm
|
||||
+
|
||||
+# TODO source files must be explicitly named.
|
||||
+SRC = $(shell find mandatory/src -name "*.asm")
|
||||
+OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
|
||||
+.PHONY: all
|
||||
+all: $(NAME)
|
||||
+$(NAME): $(OBJ)
|
||||
+ # TODO create the directory.
|
||||
+ $(AR) rc $@ $(OBJ)
|
||||
+
|
||||
|
||||
@ -75,6 +75,9 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_twig_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
|
||||
|
||||
def test_makefile_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3)
|
||||
|
||||
def test_md_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)
|
||||
|
||||
@ -159,6 +162,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_twig_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
|
||||
|
||||
def test_makefile_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3)
|
||||
|
||||
def test_md_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user