Skip to content

Commit 2f44fbb

Browse files
committed
Omit the message when there's no changes
1 parent e23f229 commit 2f44fbb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/test_typescript.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v1
1111

12-
- run: |
12+
- name: Run TypeScript Compiler Tests with new dom.d.ts
13+
run: |
1314
# Get local dependencies
1415
npm install
1516
# Make our new dom APIs

dangerfile.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {message} = require("danger")
1+
const {markdown} = require("danger")
22
const {readFileSync, existsSync} = require("fs")
33
const parseDiff = require("parse-diff")
44

@@ -28,6 +28,7 @@ if (existsSync(diffPath)) {
2828
md.push("```")
2929
})
3030

31-
32-
message(md.join("\n"))
31+
if (md.length > 2) {
32+
markdown(md.join("\n"))
33+
}
3334
}

0 commit comments

Comments
 (0)