Skip to content

Commit e739b94

Browse files
author
Igor Oleinikov
committed
Fix pattern
1 parent d8f769f commit e739b94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/js/dangerfile.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { danger, fail } from 'danger';
33
// import jest from "danger-plugin-jest"
44

55
export default async () => {
6-
if (danger.github.pr) {
7-
const match = danger.git.fileMatch('dangerfile');
6+
if (danger.git) {
7+
const match = danger.git.fileMatch('.github/**/dangerfile.ts');
88
if (match.edited) {
99
const file = match.getKeyedPaths().edited[0]
10-
fail('This dangerfile is not ready yet.', file);
10+
fail('This dangerfile is not ready yet.', file, 0);
1111
}
1212
else
1313
fail('This dangerfile is not ready yet. Location is unknown.');

0 commit comments

Comments
 (0)