mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Merge pull request #214 from aleexharris/feat/add-toml-support
Added TOML Support
This commit is contained in:
commit
771af35191
2
.gitignore
vendored
2
.gitignore
vendored
@ -87,7 +87,7 @@ ipython_config.py
|
||||
# pyenv
|
||||
# For a library or package, you might want to ignore these files since the code is
|
||||
# intended to run in multiple environments; otherwise, check them in:
|
||||
# .python-version
|
||||
.python-version
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||
|
||||
@ -178,6 +178,7 @@ Only a single milestone can be specified. If the milestone does not exist, it wi
|
||||
- Starlark
|
||||
- Swift
|
||||
- TeX
|
||||
- TOML
|
||||
- TSX
|
||||
- Twig
|
||||
- TypeScript
|
||||
|
||||
@ -40,6 +40,15 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "TOML",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "#"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Ruby",
|
||||
"markers": [
|
||||
|
||||
@ -117,6 +117,18 @@ index 6397789..494d42f 100644
|
||||
-# TODO: Define inputs
|
||||
-# Need to do this before the action is released
|
||||
-# labels: urgent
|
||||
diff --git a/tests/example_file.toml b/tests/example_file.toml
|
||||
index 6397789..494d42f 100644
|
||||
--- a/tests/example_file.toml
|
||||
+++ b/tests/example_file.toml
|
||||
@@ -1,7 +1,3 @@
|
||||
name = "TODO to Issue"
|
||||
-# TODO: Write a more interesting description
|
||||
description = "Converts IDE TODO comments to GitHub issues"
|
||||
author = "Alastair Mooney"
|
||||
-# TODO: Define inputs
|
||||
-# Need to do this before the action is released
|
||||
-# labels: urgent
|
||||
diff --git a/tests/example_file.prog.abap b/tests/example_file.prog.abap
|
||||
index 6397789..494d42f 100644
|
||||
--- /dev/null
|
||||
|
||||
@ -143,6 +143,19 @@ index 0000000..6397789
|
||||
+# TODO: Define inputs
|
||||
+# Need to do this before the action is released
|
||||
+# labels: urgent
|
||||
diff --git a/tests/example_file.toml b/tests/example_file.toml
|
||||
new file mode 100644
|
||||
index 0000000..6397789
|
||||
--- /dev/null
|
||||
+++ b/tests/example_file.toml
|
||||
@@ -0,0 +1,7 @@
|
||||
+name = "TODO to Issue"
|
||||
+# TODO: Write a more interesting description
|
||||
+description = "Converts IDE TODO comments to GitHub issues"
|
||||
+author = "Alastair Mooney"
|
||||
+# TODO: Define inputs
|
||||
+# Need to do this before the action is released
|
||||
+# labels: urgent
|
||||
diff --git a/tests/example_file.prog.abap b/src/tests/example_file.prog.abap
|
||||
new file mode 100644
|
||||
index 0000000..7cccc5b
|
||||
|
||||
@ -29,6 +29,9 @@ class NewIssueTest(unittest.TestCase):
|
||||
def test_yaml_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'yaml'), 2)
|
||||
|
||||
def test_toml_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'toml'), 2)
|
||||
|
||||
def test_php_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'php'), 4)
|
||||
|
||||
@ -120,6 +123,9 @@ class ClosedIssueTest(unittest.TestCase):
|
||||
def test_yaml_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'yaml'), 2)
|
||||
|
||||
def test_toml_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'toml'), 2)
|
||||
|
||||
def test_php_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'php'), 4)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user