@@ -91,7 +91,15 @@ Used to diagnose errors with an engineers environment. Used when running `pity d
91
91
92
92
[source,yaml]
93
93
....
94
- include::{exampleDir}/doctor-check.yaml[]
94
+ apiVersion: pity.github.com/v1alpha
95
+ kind: PityDoctorCheck
96
+ metadata:
97
+ name: path-exists
98
+ spec:
99
+ exec:
100
+ target: scripts/does-path-env-exist.sh
101
+ description: Check your shell for basic functionality
102
+ help: You're shell does not have a path env. Reload your shell.
95
103
....
96
104
97
105
From the example, when the check runs it will execute `scripts/does-path-env-exist.sh` which is defined relative to the file containing the check.
@@ -108,7 +116,14 @@ A common example is a dependency is missing, the node modules might need to be c
108
116
109
117
[source,yaml]
110
118
....
111
- include::{exampleDir}/known-error.yaml[]
119
+ apiVersion: pity.github.com/v1alpha
120
+ kind: PityKnownError
121
+ metadata:
122
+ name: error-exists
123
+ spec:
124
+ description: Check if the word error is in the logs
125
+ pattern: error
126
+ help: The command had an error, try reading the logs around there to find out what happened.
112
127
....
113
128
114
129
[cols="1,2"]
@@ -135,7 +150,20 @@ When using `pity-intercept` or `pity report`, a user is able to upload the error
135
150
136
151
[source,yaml]
137
152
....
138
- include::{exampleDir}/report.yaml[]
153
+ apiVersion: pity.github.com/v1alpha
154
+ kind: PityReport
155
+ metadata:
156
+ name: report
157
+ spec:
158
+ additionalData:
159
+ username: id -u
160
+ ruby: which ruby
161
+ node: which node
162
+ nodeVersion: node -v
163
+ destination:
164
+ githubIssue:
165
+ owner: ethankhall
166
+ repo: dummy-repo
139
167
....
140
168
141
169
[cols="1,2"]
@@ -147,9 +175,18 @@ a| `.spec.additionalData`
147
175
| A map of `name` to `command`. Pity will run the command and capture the output as part of the report.
148
176
149
177
a| `.spec.destination`
150
- a| Currently, supports https://github.com/orhun/rustypaste[`rustyPaste`] as a source.
178
+ a| Currently, supports GitHubIssues and https://github.com/orhun/rustypaste[`rustyPaste`] as a source.
151
179
Additional options will be added in the future.
152
180
181
+ a| `.spec.destination.githubIssue.owner`
182
+ a| (required) GitHub owner part of the slug. (ie. `ethankhall`)
183
+
184
+ a| `.spec.destination.githubIssue.owner`
185
+ a| (required) GitHub repo name (ie. `pity`)
186
+
187
+ a| `.spec.destination.githubIssue.tags`
188
+ a| List of tags to add to the issue.
189
+
153
190
a| `.spec.destination.rustyPaste.url`
154
- | URL to upload the report to.
191
+ a | URL to upload the report to.
155
192
|===
0 commit comments