mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
added rmd support
This commit is contained in:
parent
2c6872aca3
commit
dab20df5f2
25
syntax.json
25
syntax.json
@ -429,6 +429,29 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Rmarkdown",
|
||||
"markers": [
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "<!--",
|
||||
"end": "-->"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "{/\\*",
|
||||
"end": "\\*/}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "- \\[ \\]"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Shell",
|
||||
"markers": [
|
||||
@ -721,4 +744,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@ -240,6 +240,18 @@ index 525e25d..ba4e68d 100644
|
||||
- kept together as one todo
|
||||
- */}
|
||||
- - [ ] TODO: An inline todo that's NOT a comment (what)
|
||||
diff --git a/tests/example_file.md b/src/tests/example_file.rmd
|
||||
index 525e25d..ba4e68d 100644
|
||||
--- a/src/tests/example_file.rmd
|
||||
+++ b/src/tests/example_file.rmd
|
||||
@@ -1,7 +0,0 @@
|
||||
- {/* TODO: Hopefully this comment turns into a todo issue */}
|
||||
- {/*
|
||||
- TODO:Multiline comments
|
||||
- also need to be turned into todos, and hopefully
|
||||
- kept together as one todo
|
||||
- */}
|
||||
- - [ ] TODO: An inline todo that's NOT a comment (what)
|
||||
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
|
||||
index 525e25d..ba4e68d 100644
|
||||
--- a/src/tests/example_file.mdx
|
||||
|
||||
@ -279,6 +279,19 @@ index 0000000..7cccc5b
|
||||
+ kept together as one todo
|
||||
+ */}
|
||||
+ - [ ] TODO: An inline todo that's NOT a comment (what)
|
||||
diff --git a/tests/example_file.rmd b/src/tests/example_file.rmd
|
||||
new file mode 100644
|
||||
index 0000000..7cccc5b
|
||||
--- /dev/null
|
||||
+++ b/src/tests/example_file.rmd
|
||||
@@ -0,0 +1,7 @@
|
||||
+ {/* TODO: Hopefully this comment turns into a todo issue */}
|
||||
+ {/*
|
||||
+ TODO:Multiline comments
|
||||
+ also need to be turned into todos, and hopefully
|
||||
+ kept together as one todo
|
||||
+ */}
|
||||
+ - [ ] TODO: An inline todo that's NOT a comment (what)
|
||||
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
|
||||
new file mode 100644
|
||||
index 0000000..7cccc5b
|
||||
@ -388,4 +401,4 @@ index 0000000..a6c6cb0
|
||||
+<!-- TODO: Add xaml support -->
|
||||
+<Label Text="why"/>
|
||||
+<!-- TODO: please -->
|
||||
+<Label Text="ok"/>
|
||||
+<Label Text="ok"/>
|
||||
|
||||
@ -78,6 +78,9 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_md_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
|
||||
|
||||
def test_rmd_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'rmarkdown'), 6)
|
||||
|
||||
def test_r_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
|
||||
|
||||
@ -157,6 +160,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
|
||||
def test_md_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
|
||||
|
||||
def test_rmd_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'rmarkdown'), 6)
|
||||
|
||||
def test_r_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'r'), 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user