Skip to content

Commit 65b91c9

Browse files
committed
Add doc strings for new checks classes
1 parent 97ee685 commit 65b91c9

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

src/github3/checks.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,47 @@ def check_runs(self):
246246

247247

248248
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+
"""
249290

250291
class_name = "CheckRunAnnotation"
251292
CUSTOM_HEADERS = {"Accept": "application/vnd.github.antiope-preview+json"}
@@ -268,6 +309,30 @@ def _update_attributes(self, note):
268309

269310

270311
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+
"""
271336

272337
class_name = "CheckRunOutput"
273338
CUSTOM_HEADERS = {"Accept": "application/vnd.github.antiope-preview+json"}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy