mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
feat: add support for JSON5
This commit is contained in:
parent
9e57f4e103
commit
7032c76bc5
@ -84,6 +84,7 @@ There are additional inputs if you want to be able to assign issues to projects.
|
||||
* HTML
|
||||
* Java
|
||||
* JavaScript
|
||||
* JSON5
|
||||
* Julia
|
||||
* Kotlin
|
||||
* Less
|
||||
|
||||
@ -278,3 +278,10 @@ index 525e25d..ba4e68d 100644
|
||||
-TODO: Create an issue for TODO
|
||||
--}
|
||||
-sum a b = a + b
|
||||
|
||||
diff --git a/tests/config.json5 b/tests/config.json5
|
||||
index 0000000..525e25d 100644
|
||||
--- a/tests/config.json5
|
||||
+++ b/tests/config.json5
|
||||
@@ -0,0 +0,1 @@
|
||||
- // TODO: Delete this line from the codebase
|
||||
|
||||
@ -292,12 +292,12 @@ index 0000000..525e25d
|
||||
+ # This function should probably do something more interesting
|
||||
+ # labels: help wanted
|
||||
+}
|
||||
diff --git a/tests/example_file.r b/tests/config.json5
|
||||
diff --git a/tests/config.json5 b/tests/config.json5
|
||||
new file mode 100644
|
||||
index 0000000..525f56e
|
||||
index 0000000..525e25d
|
||||
--- /dev/null
|
||||
+++ b/tests/example_file.json5
|
||||
@@ -0,0 +1,7 @@
|
||||
+++ b/tests/config.json5
|
||||
@@ -0,0 +0,8 @@
|
||||
+{
|
||||
+ "myConfig": [
|
||||
+ // GitRepository where 'Git release/tag' matches 'Helm' version
|
||||
|
||||
@ -34,7 +34,7 @@ class NewIssueTests(unittest.TestCase):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
|
||||
|
||||
def test_json5_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'json5'), 1)
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'javascript'), 1)
|
||||
|
||||
def test_ruby_issues(self):
|
||||
# Includes 2 tests for Crystal.
|
||||
@ -114,6 +114,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_julia_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'julia'), 2)
|
||||
|
||||
def test_json5_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'javascript'), 1)
|
||||
|
||||
def test_autohotkey_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'autohotkey'), 1)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user