@@ -246,6 +246,47 @@ def check_runs(self):
246
246
247
247
248
248
class CheckRunAnnotation (models .GitHubCore ):
249
+ """Representation of an annotation of a check run.
250
+
251
+ .. versionadded:: 1.3.0
252
+
253
+ .. attribute:: path
254
+
255
+ The path of the file of the annotation.
256
+
257
+ .. attribute:: start_line
258
+
259
+ The start line of the annotation.
260
+
261
+ .. attribute:: end_line
262
+
263
+ The end line of the annotation.
264
+
265
+ .. attribute:: start_column
266
+
267
+ The start column of the annotation.
268
+
269
+ .. attribute:: end_column
270
+
271
+ The end column of the annotation.
272
+
273
+ .. attribute:: annotation_level
274
+
275
+ The level of the annotation. Can be one of 'notice', 'warning'
276
+ or 'failure'.
277
+
278
+ .. attribute:: title
279
+
280
+ The title that represents the annotation.
281
+
282
+ .. attribute:: message
283
+
284
+ The short descript of the feedback for the lines of code.
285
+
286
+ .. attribute:: raw_details
287
+
288
+ The details about this annotation.
289
+ """
249
290
250
291
class_name = "CheckRunAnnotation"
251
292
CUSTOM_HEADERS = {"Accept" : "application/vnd.github.antiope-preview+json" }
@@ -268,6 +309,30 @@ def _update_attributes(self, note):
268
309
269
310
270
311
class CheckRunOutput (models .GitHubCore ):
312
+ """Representation of the output of a check run.
313
+
314
+ .. versionadded:: 1.3.0
315
+
316
+ .. attribute:: title
317
+
318
+ The title for the check run output.
319
+
320
+ .. attribute:: summary
321
+
322
+ The summary for the check run output.
323
+
324
+ .. attribute:: text
325
+
326
+ The output text of the check run.
327
+
328
+ .. attribute:: annotations_count
329
+
330
+ The number of annotations for this check run.
331
+
332
+ .. attribute:: annotations_url
333
+
334
+ The URL to retrieve the annotations
335
+ """
271
336
272
337
class_name = "CheckRunOutput"
273
338
CUSTOM_HEADERS = {"Accept" : "application/vnd.github.antiope-preview+json" }
0 commit comments