Skip to content

Commit a90c123

Browse files
author
Orta Therox
authored
Update dangerfile.ts
1 parent 61ce630 commit a90c123

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dangerfile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import {danger, message} from "danger"
44
const go = async () => {
55
const allMDFiles = [...danger.git.modified_files, ...danger.git.created_files].filter(f => f.endsWith(".md")).filter(f => f.split("/").length > 2)
66
console.log(allMDFiles)
7+
78
for (const file of allMDFiles) {
89
const fileContents = await danger.github.utils.fileContents(file)
10+
if (!fileContents) continue
11+
912
const translation = await markdownTranslate({
1013
text: fileContents,
1114
from: file.split("/")[2],

0 commit comments

Comments
 (0)