-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (36 loc) · 1.26 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Example
on:
pull_request:
push:
branches: main
jobs:
grep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
patterns: |
- pattern: "\\<setFailed\\>"
# Must be basic|extended|fixed|perl
syntax: basic
paths:
- "src/**/*.ts"
paths-ignore:
- "src/**/*.test.ts"
# Must be notice|warning|failure
level: warning
# Limit 255 characters
title: "Use of setFailed is considered harmful"
# Limit 64KB
message: |
Imagine if setFailed was a dangerous function. This annotation
will highlight its usage in diffs.
And this body would describe why that is, what nuances or
trade-offs, the author should consider, and perhaps some options
to use instead.
This bit doesn't support markdown, sadly, but maybe someday?
https://github.community/t/checks-ability-to-include-markdown-in-line-annotations/14736/3
- pattern: "(regex)"
title: "Minimal configuration test"
only-changed: false