We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8f769f commit e739b94Copy full SHA for e739b94
.github/workflows/js/dangerfile.ts
@@ -3,11 +3,11 @@ import { danger, fail } from 'danger';
3
// import jest from "danger-plugin-jest"
4
5
export default async () => {
6
- if (danger.github.pr) {
7
- const match = danger.git.fileMatch('dangerfile');
+ if (danger.git) {
+ const match = danger.git.fileMatch('.github/**/dangerfile.ts');
8
if (match.edited) {
9
const file = match.getKeyedPaths().edited[0]
10
- fail('This dangerfile is not ready yet.', file);
+ fail('This dangerfile is not ready yet.', file, 0);
11
}
12
else
13
fail('This dangerfile is not ready yet. Location is unknown.');
0 commit comments