
    _Og                         S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r " S S\5      r " S	 S
\5      r " S S\5      rg)zFThis module contains the Status object for GitHub's commit status API.   )models)users)
GitHubCorec                   (    \ rS rSrSrS rS rS rSrg)_Status   z+Representation of a status on a repository.c                     US   U l         US   U l        U R                  US   5      U l        US   U l        US   U l        US   U l        US   U l        U R                  US   5      U l        g )	Nurlcontext
created_atdescriptionidstate
target_url
updated_at)	_apir   	_strptimer   r   r   r   r   r   )selfstatuss     Y/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/repos/status.py_update_attributes_Status._update_attributes   sr    5M	i(..)=>!-0,G_
 ...)=>    c                      SR                  U S9$ )Nz#<{s.class_name} [{s.id}:{s.state}]>sformat)r   s    r   _repr_Status._repr   s    4;;d;CCr   )r   r   r   r   r   r   r   r   N)	__name__
__module____qualname____firstlineno____doc__
class_namer   r   __static_attributes__ r   r   r   r      s    5J?Dr   r   c                   0   ^  \ rS rSrSrS rU 4S jrSrU =r$ )Status   aY  Representation of a full status on a repository.

See also: http://developer.github.com/v3/repos/statuses/

This object has the same attributes as a
:class:`~github3.repos.status.ShortStatus` as well as the following
attributes:

.. attribute:: creator

    A :class:`~github3.users.ShortUser` representing the user who created
    this status.
c                 b   > [         TU ]  U5        [        R                  " US   U 5      U l        g )Ncreator)superr   r   	ShortUserr-   )r   r   	__class__s     r   r   Status._update_attributes+   s'    "6*vi'8$?r   )r-   )	r!   r"   r#   r$   r%   r&   r   r'   __classcell__)r0   s   @r   r*   r*      s     J@ @r   r*   c                        \ rS rSrSrS r\rSrg)ShortStatus0   a  Representation of a short status on a repository.

.. versionadded:: 1.0.0

This is the representation found in a
:class:`~github3.repos.status.CombinedStatus` object.

See also: http://developer.github.com/v3/repos/statuses/

This object has the following attributes:

.. attribute:: context

    This is a string that explains the context of this status object.
    For example, ``'continuous-integration/travis-ci/pr'``.

.. attribute:: created_at

    A :class:`~datetime.datetime` object representing the date and time
    when this status was created.

.. attribute:: creator

    A :class:`~github3.users.ShortUser` representing the user who created
    this status.

.. attribute:: description

    A short description of the status.

.. attribute:: id

    The unique identifier of this status object.

.. attribute:: state

    The state of this status, e.g., ``'success'``, ``'pending'``,
    ``'failure'``.

.. attribute:: target_url

    The URL to retrieve more information about this status.

.. attribute:: updated_at

    A :class:`~datetime.datetime` object representing the date and time
    when this status was most recently updated.
r(   N)	r!   r"   r#   r$   r%   r&   r*   _refresh_tor'   r(   r   r   r4   r4   0   s    /b JKr   r4   c                   $    \ rS rSrSrS rS rSrg)CombinedStatusf   a3  A representation of the combined statuses in a repository.

See also: http://developer.github.com/v3/repos/statuses/

This object has the following attributes:

.. attribute:: commit_url

    The URL of the commit this combined status is present on.

.. attribute:: repository

    A :class:`~gitub3.repos.repo.ShortRepository` representing the
    repository on which this combined status exists.

.. attribute:: sha

    The SHA1 of the commit this status exists on.

.. attribute:: state

    The state of the combined status, e.g., ``'success'``, ``'pending'``,
    ``'failure'``.

.. attribute:: statuses

    The list of :class:`~github3.repos.status.ShortStatus` objects
    representing the individual statuses that is combined in this object.

.. attribute:: total_count

    The total number of sub-statuses.
c                     SSK Jn  US   U l        US   U l        UR	                  US   U 5      U l        US   U l        US   U l        US   nU Vs/ s H  n[        X@5      PM     snU l	        US	   U l
        g s  snf )
N   )repor
   
commit_url
repositoryshar   statusestotal_count) r<   r   r=   ShortRepositoryr>   r?   r   r4   r@   rA   )r   combined_statusr<   r@   r   s        r   r   !CombinedStatus._update_attributes   s    #E*	),7..L)4
 #5)$W-
":.7?@x!Q-x@*=9 As   A:c                 $    SnUR                  U S9$ )Nz9<CombinedStatus [{s.state}:{s.total_count} sub-statuses]>r   r   )r   fs     r   r   CombinedStatus._repr   s    Gxx$xr   )r   r=   r>   r?   r   r@   rA   N)r!   r"   r#   r$   r%   r   r   r'   r(   r   r   r8   r8   f   s     D: r   r8   N)	r%   rB   r   r   r   r   r*   r4   r8   r(   r   r   <module>rI      sL    L   Df D&@W @,3' 3l3 Z 3 r   