1
- # action-composite-template
2
-
3
- <!-- TODO: replace reviewdog/action-composite-template with your repo name -->
4
- [ ![ Test] ( https://github.com/reviewdog/action-composite-template/workflows/Test/badge.svg )] ( https://github.com/reviewdog/action-composite-template/actions?query=workflow%3ATest )
5
- [ ![ reviewdog] ( https://github.com/reviewdog/action-composite-template/workflows/reviewdog/badge.svg )] ( https://github.com/reviewdog/action-composite-template/actions?query=workflow%3Areviewdog )
6
- [ ![ depup] ( https://github.com/reviewdog/action-composite-template/workflows/depup/badge.svg )] ( https://github.com/reviewdog/action-composite-template/actions?query=workflow%3Adepup )
7
- [ ![ release] ( https://github.com/reviewdog/action-composite-template/workflows/release/badge.svg )] ( https://github.com/reviewdog/action-composite-template/actions?query=workflow%3Arelease )
8
- [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/reviewdog/action-composite-template?logo=github&sort=semver )] ( https://github.com/reviewdog/action-composite-template/releases )
9
- [ ![ action-bumpr supported] ( https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr )] ( https://github.com/haya14busa/action-bumpr )
1
+ # action-ast-grep
10
2
11
- ![ github-pr-review demo] ( https://user-images.githubusercontent.com/3797062/73162963-4b8e2b00-4132-11ea-9a3f-f9c6f624c79f.png )
12
- ![ github-pr-check demo] ( https://user-images.githubusercontent.com/3797062/73163032-70829e00-4132-11ea-8481-f213a37db354.png )
3
+ [ ![ Test] ( https://github.com/reviewdog/action-ast-grep/workflows/Test/badge.svg )] ( https://github.com/reviewdog/action-ast-grep/actions?query=workflow%3ATest )
4
+ [ ![ reviewdog] ( https://github.com/reviewdog/action-ast-grep/workflows/reviewdog/badge.svg )] ( https://github.com/reviewdog/action-ast-grep/actions?query=workflow%3Areviewdog )
5
+ [ ![ depup] ( https://github.com/reviewdog/action-ast-grep/workflows/depup/badge.svg )] ( https://github.com/reviewdog/action-ast-grep/actions?query=workflow%3Adepup )
6
+ [ ![ release] ( https://github.com/reviewdog/action-ast-grep/workflows/release/badge.svg )] ( https://github.com/reviewdog/action-ast-grep/actions?query=workflow%3Arelease )
7
+ [ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/reviewdog/action-ast-grep?logo=github&sort=semver )] ( https://github.com/reviewdog/action-ast-grep/releases )
8
+ [ ![ action-bumpr supported] ( https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr )] ( https://github.com/haya14busa/action-bumpr )
13
9
14
- <!-- TODO: outline your action here -->
15
- This is a template repository for
16
- [ reviewdog] ( https://github.com/reviewdog/reviewdog ) action with release
17
- automation based on [ action composition] ( https://docs.github.com/en/actions/creating-actions/creating-a-composite-action ) .
18
- Click ` Use this template ` button to create your reviewdog action :dog : !
10
+ ![ demo1] ( https://github.com/user-attachments/assets/1c767bc0-43c4-4a60-ab97-b8b8e916ddc8 )
11
+ ![ demo2] ( https://github.com/user-attachments/assets/3c341c29-536c-4032-b5f4-f9ec06731dfe )
19
12
20
- If you want to create your own reviewdog action from scratch without using this
21
- template, please check and copy release automation flow.
22
- It's important to manage release workflow and sync reviewdog version for all
23
- reviewdog actions.
13
+ This is an action to run [ ast-grep] [ ast-grep ] with [ reviewdog] [ reviewdog ] .
24
14
25
- This repo contains a sample action to run [ misspell] ( https://github.com/client9/misspell ) .
15
+ [ ast-grep ] : https://github.com/ast-grep/ast-grep
16
+ [ reviewdog ] : https://github.com/reviewdog/reviewdog
26
17
27
18
## Input
28
19
29
- <!-- TODO: replace `<linter-name>` with yours -->
30
20
``` yaml
31
21
inputs :
32
22
github_token :
@@ -38,7 +28,7 @@ inputs:
38
28
# ## Flags for reviewdog ###
39
29
tool_name :
40
30
description : ' Tool name to use for reviewdog reporter.'
41
- default : ' <linter-name> '
31
+ default : ' ast-grep '
42
32
level :
43
33
description : ' Report level for reviewdog [info,warning,error].'
44
34
default : ' error'
@@ -58,26 +48,27 @@ inputs:
58
48
reviewdog_flags :
59
49
description : ' Additional reviewdog flags.'
60
50
default : ' '
61
- # ## Flags for <linter-name> ###
62
- locale :
63
- description : ' -locale flag of misspell. (US/UK) '
51
+ # ## Flags for ast-grep ###
52
+ sg_version :
53
+ description : ' ast-grep version. '
64
54
default : ' '
55
+ sg_config :
56
+ description : ' path to the ast-grep config file'
57
+ default : ' sgconfig.yml'
65
58
` ` `
66
59
67
60
## Usage
68
- <!-- TODO: replace reviewdog/action-composite-template with your repo name -->
69
61
70
62
` ` ` yaml
71
63
name : reviewdog
72
64
on : [pull_request]
73
65
jobs :
74
- # TODO: replace `linter_name` and `<linter-name>` with yours
75
- linter_name :
76
- name : runner / <linter-name>
66
+ ast-grep :
67
+ name : runner / ast-grep
77
68
runs-on : ubuntu-latest
78
69
steps :
79
70
- uses : actions/checkout@v4
80
- - uses : reviewdog/action-composite-template @v1
71
+ - uses : reviewdog/action-ast-grep @v1
81
72
with :
82
73
github_token : ${{ secrets.github_token }}
83
74
# Change reviewdog reporter if you need [github-check,github-pr-review,github-pr-check].
0 commit comments