File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 10
10
![ demo1] ( https://github.com/user-attachments/assets/1c767bc0-43c4-4a60-ab97-b8b8e916ddc8 )
11
11
![ demo2] ( https://github.com/user-attachments/assets/3c341c29-536c-4032-b5f4-f9ec06731dfe )
12
12
13
- This is an action to run [ ast-grep] [ ast-grep ] with [ reviewdog] [ reviewdog ] .
13
+ This is an action to run [ ast-grep(sg) ] [ ast-grep ] with [ reviewdog] [ reviewdog ] .
14
14
15
15
[ ast-grep ] : https://github.com/ast-grep/ast-grep
16
16
[ reviewdog ] : https://github.com/reviewdog/reviewdog
@@ -59,6 +59,10 @@ inputs:
59
59
60
60
## Usage
61
61
62
+ Create ` sgconfig.yml` and some rules in your repository by following the [project setup guide][sg-scan-guide].
63
+
64
+ Add a workflow to run action-ast-grep that triggered by pull request event.
65
+
62
66
` ` ` yaml
63
67
name: reviewdog
64
68
on: [pull_request]
76
80
# Change reporter level if you need.
77
81
# GitHub Status Check won't become failure with warning.
78
82
level: warning
83
+ # path to the sgconfig.yml
84
+ sg_config: sgconfig.yml
79
85
` ` `
80
86
87
+ Reviewdog will report `ast-grep scan` result.
88
+
89
+ [sg-scan-guide] : https://ast-grep.github.io/guide/scan-project.html
90
+
81
91
# # Development
82
92
83
93
# ## Release
You can’t perform that action at this time.
0 commit comments