|
1 | 1 | ---
|
2 |
| -# skip_no_token: true |
| 2 | +# yaml-language-server: $schema=https://raw.githubusercontent.com/suzuki-shunsuke/github-comment/main/json-schema/github-comment.json |
| 3 | +# https://suzuki-shunsuke.github.io/github-comment/ |
| 4 | +# github-comment works without configuration file. All settings are optional. |
| 5 | +skip_no_token: false |
3 | 6 | # base:
|
4 | 7 | # org:
|
5 | 8 | # repo:
|
6 |
| -# vars: |
7 |
| -# foo: bar |
8 |
| -# zoo: |
9 |
| -# foo: hello |
10 |
| -# templates: |
11 |
| -# header: "# {{.Org}}/{{.Repo}}" |
12 |
| -# post: |
13 |
| -# default: |
14 |
| -# template: | |
15 |
| -# {{template "header" .}} |
16 |
| -# {{.Vars.foo}} {{.Vars.zoo.foo}} |
17 |
| -# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
18 |
| -# hello: |
19 |
| -# template: hello |
20 |
| -# exec: |
21 |
| -# hello: |
22 |
| -# - when: true |
23 |
| -# template: | |
24 |
| -# {{template "header" .}} |
25 |
| -# {{.Vars.foo}} {{.Vars.zoo.foo}} |
26 |
| -# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
27 |
| -# exit code: {{.ExitCode}} |
28 |
| -# |
29 |
| -# ```console |
30 |
| -# $ {{.Command}} |
31 |
| -# ``` |
32 |
| -# |
33 |
| -# Stdout: |
34 |
| -# |
35 |
| -# ``` |
36 |
| -# {{.Stdout}} |
37 |
| -# ``` |
38 |
| -# |
39 |
| -# Stderr: |
40 |
| -# |
41 |
| -# ``` |
42 |
| -# {{.Stderr}} |
43 |
| -# ``` |
44 |
| -# |
45 |
| -# CombinedOutput: |
46 |
| -# |
47 |
| -# ``` |
48 |
| -# {{.CombinedOutput}} |
49 |
| -# ``` |
50 |
| -# template_for_too_long: | |
51 |
| -# {{template "header" .}} |
52 |
| -# {{.Vars.foo}} {{.Vars.zoo.foo}} |
53 |
| -# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
54 |
| -# exit code: {{.ExitCode}} |
55 |
| -# |
56 |
| -# ```console |
57 |
| -# $ {{.Command}} |
58 |
| -# ``` |
| 9 | +vars: |
| 10 | + # hello is just an example. Please remove this freely. |
| 11 | + hello: bar |
| 12 | +templates: |
| 13 | + # hello is just an example. Please remove this freely. |
| 14 | + hello: "# {{.Org}}/{{.Repo}}" |
| 15 | +post: |
| 16 | + # hello is just an example. Please remove this freely. |
| 17 | + hello: |
| 18 | + template: | |
| 19 | + {{template "header" .}} |
| 20 | + {{.Vars.foo}} {{.Vars.zoo.foo}} |
| 21 | + {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
| 22 | +hide: |
| 23 | + # hello is just an example. Please remove this freely. |
| 24 | + hello: 'Comment.HasMeta && (Comment.Meta.SHA1 != Commit.SHA1 && Comment.Meta.Vars.target == "hello")' |
| 25 | +exec: |
| 26 | + # hello is just an example. Please remove this freely. |
| 27 | + hello: |
| 28 | + - when: true |
| 29 | + template: | |
| 30 | + {{template "header" .}} |
| 31 | + {{.Vars.foo}} {{.Vars.zoo.foo}} |
| 32 | + {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
| 33 | + exit code: {{.ExitCode}} |
| 34 | +
|
| 35 | + ```console |
| 36 | + $ {{.Command}} |
| 37 | + ``` |
| 38 | +
|
| 39 | + Stdout: |
| 40 | +
|
| 41 | + ``` |
| 42 | + {{.Stdout}} |
| 43 | + ``` |
| 44 | +
|
| 45 | + Stderr: |
| 46 | +
|
| 47 | + ``` |
| 48 | + {{.Stderr}} |
| 49 | + ``` |
| 50 | +
|
| 51 | + CombinedOutput: |
| 52 | +
|
| 53 | + ``` |
| 54 | + {{.CombinedOutput}} |
| 55 | + ``` |
| 56 | + template_for_too_long: | |
| 57 | + {{template "header" .}} |
| 58 | + {{.Vars.foo}} {{.Vars.zoo.foo}} |
| 59 | + {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} |
| 60 | + exit code: {{.ExitCode}} |
| 61 | +
|
| 62 | + ```console |
| 63 | + $ {{.Command}} |
| 64 | + ``` |
0 commit comments