Skip to content

Commit d5c7f5b

Browse files
committed
Clarify documentation for check actions
1 parent 392f68b commit d5c7f5b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/github3/checks.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,12 @@ def update(
499499
format: YYYY-MM-DDTHH:MM:SSZ
500500
:param dict output:
501501
(optional), key-value pairs representing the output. Format:
502-
{'title': 'string', 'summary', 'text, can be markdown', 'text':
503-
'text, can be markdown', 'annotations': [{}], 'images': [{}]}
504-
:param array actions:
505-
(optional), array of action objects. Object format is:
506-
{'label': 'text', 'description', 'text', 'identifier', 'text'}
502+
``{'title': 'string', 'summary', 'text, can be markdown', 'text':
503+
'text, can be markdown', 'annotations': [{}], 'images': [{}]}``
504+
:param list actions:
505+
(optional), list of action objects. Format is:
506+
``[{'label': 'text', 'description', 'text', 'identifier', 'text'},
507+
...]``
507508
:returns:
508509
True if successful, False otherwise
509510
:rtype:

src/github3/repos/repo.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,12 @@ def create_check_run(
598598
format: YYYY-MM-DDTHH:MM:SSZ
599599
:param dict output:
600600
(optional), key-value pairs representing the output. Format:
601-
{'title': 'string', 'summary': 'text, can be markdown', 'text':
602-
'text, can be markdown', 'annotations': [{}], 'images': [{}]}
603-
:param array actions:
604-
(optional), array of action objects. Object format is:
605-
{'label': 'text', 'description', 'text', 'identifier', 'text'}
601+
``{'title': 'string', 'summary': 'text, can be markdown', 'text':
602+
'text, can be markdown', 'annotations': [{}], 'images': [{}]}``
603+
:param list actions:
604+
(optional), list of action objects. Format is:
605+
``[{'label': 'text', 'description', 'text', 'identifier', 'text'},
606+
...]``
606607
:returns:
607608
the created check run
608609
:rtype:

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