Ë
    daºiB  ã                   ó–   — d dl mZ ddlmZ ddlmZ d dlmZ d dlm	Z	 d dl
mZmZmZ  G d	„ d
e«      Z G d„ de«      Z G d„ de«      Zy)é   )ÚBitbucketCloudBaseé   )ÚDiffStaté   )ÚCommit)ÚBuild)ÚComment)ÚUserÚParticipantÚAppUserc                   óN   ‡ — e Zd ZdZˆ fd„Zd„ Z	 	 	 	 dd„Zdˆ fd„	Zˆ fd„Zˆ xZ	S )	ÚPullRequestsz'
    Bitbucket Cloud pull requests
    c                 ó4   •— t        t        | �
  |g|¢­i |¤Ž y ©N)Úsuperr   Ú__init__)ÚselfÚurlÚargsÚkwargsÚ	__class__s       €úk/var/www/timesheet/venv/lib/python3.12/site-packages/atlassian/bitbucket/cloud/repositories/pullRequests.pyr   zPullRequests.__init__   s   ø€ ÜŒl˜DÑ*¨3Ð@°Ò@¸Ó@ó    c                 ó.   — t        |fi | j                  ¤ŽS r   )ÚPullRequestÚ_new_session_args©r   Údatas     r   Ú__get_objectzPullRequests.__get_object   s   € Ü˜4Ñ: 4×#9Ñ#9Ñ:Ð:r   c                 ó¨   — |r|D �cg c]  }d|i‘Œ c}ng }|dd|ii|||dœ}	|r	dd|ii|	d<   | j                  | j                  d|	«      «      S c c}w )a7  
        Creates a new pull requests for a given source branch
        Be careful, adding this multiple times for the same source branch updates the pull request!

        :param title: string: pull request title
        :param source_branch: string: name of the source branch
        :param destination_branch: string: name of the destination branch, if None the repository main branch is used
        :param description: string: pull request description
        :param close_source_branch: bool: specifies if the source branch should be closed upon merging
        :param reviewers: list: list of user uuids in curly brackets

        :return: Pull Request Object

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests#post
        ÚuuidÚbranchÚname)ÚtitleÚsourceÚdescriptionÚclose_source_branchÚ	reviewersÚdestinationN)Ú_PullRequests__get_objectÚpost)
r   r$   Úsource_branchÚdestination_branchr&   r'   r(   ÚxÚrvr   s
             r   ÚcreatezPullRequests.create   sw   € ñ2 2; 9Ö-˜aˆv�qŠkÓ-ÀˆàØ &¨-Ð!8Ð9Ø&Ø#6Øñ
ˆñ Ø#+¨fÐ6HÐ-IÐ"JˆD�Ñà× Ñ  §¡¨4°Ó!6Ó7Ð7ùò .s   ‡Ac              #   óÆ   •K  — i }|�||d<   |�||d<   | j                  dd|¬«      D ]5  }| j                  t        t        | �  |j	                  d«      «      «      –— Œ7 y­w)a�  
        Returns the list of pull requests in this repository.

        :param q: string: Query string to narrow down the response.
                          See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
        :param sort: string: Name of a response property to sort results.
                             See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.

        :return: A generator for the PullRequest objects

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests#get
        NÚsortÚqT)ÚtrailingÚparamsÚid)Ú
_get_pagedr*   r   r   Úget)r   r3   r2   r5   Úprr   s        €r   ÚeachzPullRequests.each<   su   øè ø€ ð ˆØÐØ!ˆF�6‰NØˆ=ØˆF�3‰KØ—/‘/ $°¸f�/ÓEò 	QˆBØ×#Ñ#¤E¬,¸Ñ$AÀ"Ç&Á&ÈÃ,Ó$OÓPÓPð	Qð 	ùs   ƒAA!c                 óH   •— | j                  t        t        | �  |«      «      S )ai  
        Returns the pull requests with the requested id in this repository.

        :param id: int: The requested pull request id

        :return: The requested PullRequest object

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D#get
        )r*   r   r   r8   )r   r6   r   s     €r   r8   zPullRequests.getS   s"   ø€ ð × Ñ ¤¤|°TÑ!>¸rÓ!BÓCÐCr   )NNNN©NN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r*   r0   r:   r8   Ú__classcell__©r   s   @r   r   r      s8   ø„ ñôAò;ð  ØØ Øó$8õL÷.
Dð 
Dr   r   c                   ó  ‡ — e Zd ZdZdZdZdZeeegZdZdZ	dZ
dZˆ fd	„Zd
„ Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z ed„ «       Z!d„ Z"d0d„Z#d0d „Z$d!„ Z%d"„ Z&d#„ Z'd$„ Z(d1d%„Z)d&„ Z*ed'„ «       Z+d(„ Z,d)„ Z-d*„ Z.ˆ fd+„Z/d,„ Z0ˆ fd-„Z1d.„ Z2d1d/„Z3ˆ xZ4S )2r   zË
    Bitbucket Cloud pull request endpoint

    See https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D
    Úmerge_commitÚsquashÚfast_forwardÚOPENÚDECLINEDÚMERGEDÚ
SUPERSEDEDc                 ó:   •— t        t        | �
  d g|¢­|ddœ|¤Ž y )NÚpullrequest)r   Úexpected_type)r   r   r   ©r   r   r   r   r   s       €r   r   zPullRequest.__init__t   s%   ø€ ÜŒk˜4Ñ)¨$Ðh°Ñh¸DÐP]ÑhÐagÓhr   c                 ó2   — | j                   st        d«      ‚y )NzPull Request isn't open)Úis_openÚ	Exception©r   s    r   Ú_check_if_openzPullRequest._check_if_openw   s   € Ø�|Š|ÜÐ5Ó6Ð6Ør   c                 ó$   — | j                  d«      S )zunique pull request idr6   ©Úget_datarR   s    r   r6   zPullRequest.id|   ó   € ð �}‰}˜TÓ"Ð"r   c                 ó$   — | j                  d«      S )zpull request titler$   rU   rR   s    r   r$   zPullRequest.title�   s   € ð �}‰}˜WÓ%Ð%r   c                 ó$   — | j                  d«      S )zpull request descriptionr&   rU   rR   s    r   r&   zPullRequest.description†   ó   € ð �}‰}˜]Ó+Ð+r   c                 ó>   — | j                  d«      | j                  k(  S )z%True if the pull request was declinedÚstate)rV   ÚSTATE_DECLINEDrR   s    r   Úis_declinedzPullRequest.is_declined‹   ó   € ð �}‰}˜WÓ%¨×)<Ñ)<Ñ<Ð<r   c                 ó>   — | j                  d«      | j                  k(  S )z#True if the pull request was mergedr\   )rV   ÚSTATE_MERGEDrR   s    r   Ú	is_mergedzPullRequest.is_merged�   s   € ð �}‰}˜WÓ%¨×):Ñ):Ñ:Ð:r   c                 ó>   — | j                  d«      | j                  k(  S )z True if the pull request is openr\   )rV   Ú
STATE_OPENrR   s    r   rP   zPullRequest.is_open•   s   € ð �}‰}˜WÓ%¨¯©Ñ8Ð8r   c                 ó>   — | j                  d«      | j                  k(  S )z'True if the pull request was supersededr\   )rV   ÚSTATE_SUPERSEDEDrR   s    r   Úis_supersededzPullRequest.is_supersededš   s   € ð �}‰}˜WÓ%¨×)>Ñ)>Ñ>Ð>r   c                 ó$   — | j                  d«      S ©ztime of creationÚ
created_on©Úget_timerR   s    r   rj   zPullRequest.created_onŸ   ó   € ð �}‰}˜\Ó*Ð*r   c                 ó$   — | j                  d«      S )ztime of last updateÚ
updated_onrk   rR   s    r   ro   zPullRequest.updated_on¤   rm   r   c                 ó$   — | j                  d«      S )zclose source branch flagr'   rU   rR   s    r   r'   zPullRequest.close_source_branch©   s   € ð �}‰}Ð2Ó3Ð3r   c                 ó0   — | j                  d«      d   d   S )zsource branchr%   r"   r#   rU   rR   s    r   r,   zPullRequest.source_branch®   ó   € ð �}‰}˜XÓ& xÑ0°Ñ8Ð8r   c                 ó0   — | j                  d«      d   d   S )zdestination branchr)   r"   r#   rU   rR   s    r   r-   zPullRequest.destination_branch³   ó   € ð �}‰}˜]Ó+¨HÑ5°fÑ=Ð=r   c                 ó0   — | j                  d«      d   d   S )zSource commit.r%   ÚcommitÚhashrU   rR   s    r   Úsource_commitzPullRequest.source_commit¸   rr   r   c                 ó0   — | j                  d«      d   d   S )zDestination commit.r)   rv   rw   rU   rR   s    r   Údestination_commitzPullRequest.destination_commit½   rt   r   c                 ó$   — | j                  d«      S )znumber of commentsÚcomment_countrU   rR   s    r   r|   zPullRequest.comment_countÂ   s   € ð �}‰}˜_Ó-Ð-r   c                 ó$   — | j                  d«      S )znumber of tasksÚ
task_countrU   rR   s    r   r~   zPullRequest.task_countÇ   rm   r   c                 ó$   — | j                  d«      S )zreason for decliningÚreasonrU   rR   s    r   Údeclined_reasonzPullRequest.declined_reasonÌ   s   € ð �}‰}˜XÓ&Ð&r   c                 ó²   — | j                  d«      d   dk(  r&t        d| j                  d«      fi | j                  ¤ŽS t        d| j                  d«      «      S )zUser object of the authorÚauthorÚtypeÚapp_userN©rV   r   r   r
   rR   s    r   rƒ   zPullRequest.authorÑ   sQ   € ð �=‰=˜Ó" 6Ñ*¨jÒ8ä˜4 §¡¨xÓ!8ÑS¸D×<RÑ<RÑSÐSÜ�D˜$Ÿ-™-¨Ó1Ó2Ð2r   c                 óJ   — | j                  «       D ]  }|j                  sŒ y y)z=Returns True if any of the changes in the PR cause conflicts.TF)ÚdiffstatÚhas_conflict©r   rˆ   s     r   r‰   zPullRequest.has_conflictÙ   s*   € ð Ÿ™›ò 	ˆHØ×$Ó$Ùð	ð r   c              #   óh   K  — | j                  d«      D ]  }t        |fi | j                  ¤Ž–— Œ y­w)zè
        Returns a generator object of diffstats

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/diffstat
        rˆ   N)r7   r   r   rŠ   s     r   rˆ   zPullRequest.diffstatá   s;   è ø€ ð Ÿ™¨
Ó3ò 	?ˆHÜ˜8Ñ> t×'=Ñ'=Ñ>Ó>ð	?ð 	ùó   ‚02c                 ó>   — t        | j                  dd¬«      |¬«      S )zÌ
        Returns PR diff

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/diff
        ÚdiffT©Únot_json_response©Úencoding©Ústrr8   ©r   r’   s     r   rŽ   zPullRequest.diffì   s   € ô �4—8‘8˜F°d�8Ó;ÀhÔOÐOr   c                 ó>   — t        | j                  dd¬«      |¬«      S )zÎ
        Returns PR patch

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/patch
        ÚpatchTr�   r‘   r“   r•   s     r   r—   zPullRequest.patchô   s   € ô �4—8‘8˜G°t�8Ó<ÀxÔPÐPr   c                 ó$   — | j                  d«      S )zò
        Returns generator object of the statuses endpoint

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/statuses
        Ústatuses)r7   rR   s    r   r™   zPullRequest.statusesü   s   € ð �‰˜zÓ*Ð*r   c              #   óh   K  — | j                  d«      D ]  }t        |fi | j                  ¤Ž–— Œ y­w)z*Returns a generator object of participantsÚparticipantsN)rV   r   r   )r   Úparticipants     r   r›   zPullRequest.participants  s;   è ø€ àŸ=™=¨Ó8ò 	EˆKÜ˜kÑD¨T×-CÑ-CÑDÓDð	Eð 	ùrŒ   c              #   ój   K  — | j                  d«      D ]  }t        d|fi | j                  ¤Ž–— Œ y­w)z'Returns a generator object of reviewersr(   N)rV   r
   r   )r   Úreviewers     r   r(   zPullRequest.reviewers  s=   è ø€ àŸ™ kÓ2ò 	AˆHÜ�t˜XÑ@¨×)?Ñ)?Ñ@Ó@ð	Að 	ùs   ‚13c              #   ó    K  — | j                  «       D �cg c]  }|d   dk(  sŒ|‘Œ }}|D ]  }t        |fi | j                  ¤Ž–— Œ yc c}w ­w)z6Returns the latest Build objects for the pull request.r„   ÚbuildN)r™   r   r   )r   ÚbÚbuildsr    s       r   r¢   zPullRequest.builds  sZ   è ø€ à!Ÿ]™]›_ÖE˜°°&±	¸WÓ0D’!ÐEˆÐEØò 	9ˆEÜ˜Ñ8 ×!7Ñ!7Ñ8Ó8ð	9ð 	ùò	 Fùs   ‚A•A	£A	§'Ac              #   óŒ   K  — i }|�||d<   |�||d<   | j                  d|¬«      D ]  }t        |fi | j                  ¤Ž–— Œ y­w)a  
        Returns generator object of the comments endpoint

        :param q: string: Query string to narrow down the response.
        :param sort: string: Name of a response property to sort results.
            See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
            for details on filtering and sorting.

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/comments#get
        Nr2   r3   Úcomments)r5   )r7   r	   r   )r   r3   r2   r5   Úcomments        r   r¤   zPullRequest.comments  s\   è ø€ ð ˆØÐØ!ˆF�6‰NØˆ=ØˆF�3‰KØ—‘ z¸&�ÓAò 	=ˆGÜ˜'Ñ< T×%;Ñ%;Ñ<Ó<ñ	=ùs   ‚AAc                 óL   — |st        d«      ‚dd|ii}| j                  d|«      S )zï
        Commenting the pull request in raw format

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/comments#post
        úNo message setÚcontentÚrawr¤   )Ú
ValueErrorr+   ©r   Úraw_messager   s      r   r¥   zPullRequest.comment-  s<   € ñ ÜÐ-Ó.Ð.ð Ø�{ðð
ˆð �y‰y˜ TÓ*Ð*r   c              #   óh   K  — | j                  d«      D ]  }t        |fi | j                  ¤Ž–— Œ y­w)z;Returns generator object for the Commits in the PullRequestÚcommitsN)r7   r   r   )r   rv   s     r   r®   zPullRequest.commits>  s6   è ø€ ð —o‘o iÓ0ò 	;ˆFÜ˜Ñ: 4×#9Ñ#9Ñ:Ó:ñ	;ùrŒ   c              #   óh   K  — | j                  d«      D ]  }t        |fi | j                  ¤Ž–— Œ y­w)z°
        Returns generator object of the tasks endpoint

        This is feature currently undocumented.
        But confirmed by an Atlassian employee (BCLOUD-16682).
        ÚtasksN)r7   ÚTaskr   )r   Útasks     r   r°   zPullRequest.tasksD  s6   è ø€ ð —O‘O GÓ,ò 	7ˆDÜ�tÑ6˜t×5Ñ5Ñ6Ó6ñ	7ùrŒ   c                 ót   — |st        d«      ‚dd|ii}t        | j                  d|«      fi | j                  ¤ŽS )z²
        Adding a task to the pull request in raw format.

        This is feature currently undocumented.
        But confirmed by an Atlassian employee (BCLOUD-16682).
        r§   r¨   r©   r°   )rª   r±   r+   r   r«   s      r   Úadd_taskzPullRequest.add_taskN  sL   € ñ ÜÐ-Ó.Ð.ð Ø�{ðð
ˆô �D—I‘I˜g tÓ,ÑG°×0FÑ0FÑGÐGr   c                 óN   — | j                  «        ddi}| j                  d|«      S )zã
        Approve a pull request if open

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/approve#post
        ÚapprovedTÚapprove©rS   r+   r   s     r   r·   zPullRequest.approve`  s+   € ð 	×ÑÔØ˜DÐ!ˆØ�y‰y˜ DÓ)Ð)r   c                 óJ   •— | j                  «        t        t        | �  d«      S )zç
        Unapprove a pull request if open

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/approve#delete
        r·   ©rS   r   r   Údelete©r   r   s    €r   Ú	unapprovezPullRequest.unapprovej  s$   ø€ ð 	×ÑÔÜÔ'¨Ñ5°iÓ@Ð@r   c                 óN   — | j                  «        ddi}| j                  d|«      S )zù
        Request changes for the pull request if open

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/request-changes#post
        úrequest-changesTr¸   r   s     r   Úrequest_changeszPullRequest.request_changess  s,   € ð 	×ÑÔØ! 4Ð(ˆØ�y‰yÐ*¨DÓ1Ð1r   c                 óJ   •— | j                  «        t        t        | �  d«      S )zý
        Unrequest changes for the pull request if open

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/request-changes#delete
        r¿   rº   r¼   s    €r   Úunrequest_changeszPullRequest.unrequest_changes}  s%   ø€ ð 	×ÑÔÜÔ'¨Ñ5Ð6GÓHÐHr   c                 ób   — | j                  «        d| j                  i}| j                  d|«      S )zÖ
        Decline a pull request

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/decline
        r6   Údecline)rS   r6   r+   r   s     r   rÄ   zPullRequest.decline†  s.   € ð 	×ÑÔà�d—g‘gˆˆØ�y‰y˜ DÓ)Ð)r   c                 ó¼   — | j                  «        |�&|| j                  vrt        d| j                  › �«      ‚|xs | j                  |dœ}| j	                  d|«      S )aü  
        Merges the pull request if it's open
        :param merge_strategy: string:  Merge strategy (one of PullRequest.MERGE_COMMIT, PullRequest.MERGE_SQUASH, PullRequest.MERGE_FF), if None default merge strategy will be used
        :param close_source_branch: boolean: Close the source branch after merge, default PR option

        API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/merge
        zmerge_strategy must be )r'   Úmerge_strategyÚmerge)rS   ÚMERGE_STRATEGIESrª   r'   r+   )r   rÆ   r'   r   s       r   rÇ   zPullRequest.merge‘  sj   € ð 	×ÑÔàÐ%¨.À×@UÑ@UÑ*UÜÐ6°t×7LÑ7LÐ6MÐNÓOÐOð $7Ò#R¸$×:RÑ:RØ,ñ
ˆð
 �y‰y˜ $Ó'Ð'r   )zutf-8r<   )5r=   r>   r?   r@   ÚMERGE_COMMITÚMERGE_SQUASHÚMERGE_FFrÈ   rd   r]   ra   rf   r   rS   Úpropertyr6   r$   r&   r^   rb   rP   rg   rj   ro   r'   r,   r-   rx   rz   r|   r~   r�   rƒ   r‰   rˆ   rŽ   r—   r™   r›   r(   r¢   r¤   r¥   r®   r°   r´   r·   r½   rÀ   rÂ   rÄ   rÇ   rA   rB   s   @r   r   r   `   s6  ø„ ñð "€LØ€LØ€HàØØðÐð
 €JØ€NØ€LØ#Ðôiòð
 ñ#ó ð#ð ñ&ó ð&ð ñ,ó ð,ð ñ=ó ð=ð ñ;ó ð;ð ñ9ó ð9ð ñ?ó ð?ð ñ+ó ð+ð ñ+ó ð+ð ñ4ó ð4ð ñ9ó ð9ð ñ>ó ð>ð ñ9ó ð9ð ñ>ó ð>ð ñ.ó ð.ð ñ+ó ð+ð ñ'ó ð'ð ñ3ó ð3ð ñó ðò	óPóQò+òòòó=ò&+ð" ñ;ó ð;ò
7òHò$*ôAò2ôIò	*÷(r   r   c                   ó¦   ‡ — e Zd ZdZdZˆ fd„Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       Zed	„ «       Zed
„ «       Zd„ Zˆ fd„Zˆ xZS )r±   ÚRESOLVEDÚ
UNRESOLVEDc                 ó2   •— t        ‰| �  d d g|¢­d|i|¤Ž y )Nr   )r   r   rN   s       €r   r   zTask.__init__ª  s!   ø€ Ü‰Ñ˜˜tÐ@ dÒ@°Ð@¸Ó@r   c                 ó$   — | j                  d«      S )zTask id.r6   rU   rR   s    r   r6   zTask.id­  rW   r   c                 ó*   — | j                  d«      d   S )zThe task description.r¨   r©   rU   rR   s    r   r&   zTask.description²  s   € ð �}‰}˜YÓ'¨Ñ.Ð.r   c                 ó$   — | j                  d«      S ri   rk   rR   s    r   rj   zTask.created_on·  rm   r   c                 ó$   — | j                  d«      S )zresolve timestampÚresolved_onrk   rR   s    r   rÕ   zTask.resolved_on¼  rZ   r   c                 ó>   — | j                  d«      | j                  k(  S )z&True if the task was already resolved.r\   )rV   ÚSTATE_RESOLVEDrR   s    r   Úis_resolvedzTask.is_resolvedÁ  r_   r   c                 óÈ   — | j                  d«      d   dk(  r&t        d| j                  d«      fi | j                  ¤ŽS t        d| j                  d«      fi | j                  ¤ŽS )z5User object with user information of the task creatorÚcreatorr„   r…   Nr†   rR   s    r   rÚ   zTask.creatorÆ  s\   € ð �=‰=˜Ó# FÑ+¨zÒ9ä˜4 §¡¨yÓ!9ÑT¸T×=SÑ=SÑTÐTÜ�D˜$Ÿ-™-¨	Ó2ÑM°d×6LÑ6LÑMÐMr   c                 óÈ   — | j                  d«      d   dk(  r&t        d| j                  d«      fi | j                  ¤ŽS t        d| j                  d«      fi | j                  ¤ŽS )z6User object with user information of the task resolverÚresolved_byr„   r…   Nr†   rR   s    r   rÜ   zTask.resolved_byÎ  s\   € ð �=‰=˜Ó'¨Ñ/°:Ò=ä˜4 §¡¨}Ó!=ÑXÀ×AWÑAWÑXÐXÜ�D˜$Ÿ-™-¨Ó6ÑQ¸$×:PÑ:PÑQÐQr   c                 ól   — |st        d«      ‚dd|ii}| j                  | j                  d|¬«      «      S )z^
        Update a task in raw format

        This is feature currently undocumented.
        r§   r¨   r©   N)r   )rª   Ú_update_dataÚputr«   s      r   ÚupdatezTask.updateÖ  sI   € ñ ÜÐ-Ó.Ð.ð Ø�{ðð
ˆð
 × Ñ  §¡¨$°T Ó!:Ó;Ð;r   c                 ó*   •— t         t        | �  d«      S )z_
        Delete the pullrequest task.

        This is feature currently undocumented.
        N)r   r±   r»   r¼   s    €r   r»   zTask.deleteæ  s   ø€ ô ”T˜4Ñ'¨Ó-Ð-r   )r=   r>   r?   r×   ÚSTATE_UNRESOLVEDr   rÌ   r6   r&   rj   rÕ   rØ   rÚ   rÜ   rà   r»   rA   rB   s   @r   r±   r±   ¦  s³   ø„ Ø€NØ#ÐôAð ñ#ó ð#ð ñ/ó ð/ð ñ+ó ð+ð ñ,ó ð,ð ñ=ó ð=ð ñNó ðNð ñRó ðRò<÷ .ð .r   r±   N)Úbaser   rˆ   r   Úcloud.repositories.commitsr   Úcommon.buildsr   Úcommon.commentsr	   Úcommon.usersr
   r   r   r   r   r±   © r   r   ú<module>ré      sM   ðõ &Ý Ý 0Ý !Ý %ß 5Ñ 5ôRDÐ%ô RDôjC(Ð$ô C(ôL
F.Ðõ F.r   