We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ce630 commit a90c123Copy full SHA for a90c123
dangerfile.ts
@@ -4,8 +4,11 @@ import {danger, message} from "danger"
4
const go = async () => {
5
const allMDFiles = [...danger.git.modified_files, ...danger.git.created_files].filter(f => f.endsWith(".md")).filter(f => f.split("/").length > 2)
6
console.log(allMDFiles)
7
+
8
for (const file of allMDFiles) {
9
const fileContents = await danger.github.utils.fileContents(file)
10
+ if (!fileContents) continue
11
12
const translation = await markdownTranslate({
13
text: fileContents,
14
from: file.split("/")[2],
0 commit comments