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