You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ The `providers.github` key configures how **source{d} Lookout** will connect wit
39
39
```yaml
40
40
providers:
41
41
github:
42
-
comment_footer: "_Comment made by analyzer '{{.Name}}', [report]({{.Feedback}})._"
42
+
comment_footer: "_Comment made by '{{.Name}}'{{with .Feedback}}, [tell us]({{.}}){{end}}._"
43
43
# app_id: 1234
44
44
# private_key: ./key.pem
45
45
# installation_sync_interval: 1h
@@ -141,29 +141,30 @@ analyzers:
141
141
142
142
### Add a Custom Message to the Posted Comments
143
143
144
-
You can configure **source{d} Lookout** to add a custom message to every comment that each analyzer returns. This custom message will be created from the template defined by `providers.github.comment_footer`, using the `name` and `feedback` set for each analyzer.
144
+
You can configure **source{d} Lookout** to add a custom message to every comment that each analyzer returns. This custom message will be created from the template defined by `providers.github.comment_footer`, using the configuration set for each analyzer.
145
145
146
146
If the template (`providers.github.comment_footer`) is empty, or the analyzer configuration does not define any of the values that the template requires, the custom message won't be added.
147
147
148
-
For example, for this configuration, each analyzer needs to define `name` and `feedback`:
148
+
For example, for this configuration, each analyzer needs to define `name` and `settings.email`:
149
149
150
150
```yaml
151
151
providers:
152
152
github:
153
-
comment_footer: "Comment made by analyzer {{.Name}}, [report]({{.Feedback}})."
153
+
comment_footer: "Comment made by analyzer {{.Name}}, [email me]({{.Settings.email}})."
154
154
155
155
analyzers:
156
156
- name: Fancy Analyzer
157
157
addr: ipv4://localhost:9930
158
-
feedback: http://example.com/report-issue
158
+
settings:
159
+
email: admin@example.org
159
160
- name: Awesome Analyzer
160
161
addr: ipv4://localhost:9931
161
162
```
162
163
163
164
Comments from `Fancy Analyzer` will have this footer appended:
164
-
>_Comment made by analyzer Fancy Analyzer, [report](http://example.com/report-issue)._
165
+
>_Comment made by analyzer Fancy Analyzer, [email me](admin@example.org)._
165
166
166
-
but comments from `Awesome Analyzer` will not have a footer message because its configuration is missing a `feedback` value.
167
+
but comments from `Awesome Analyzer` wont have a footer message because in its configuration it's missing the `settings.email` value.
0 commit comments