
                         @    d Z ddlmZ ddlmZ ddlmZ ddlZd Zd Zy)z3Library for creating pull request related messages.    )absolute_import)division)unicode_literalsNc                     t        j                  |       } | d   d   }|d   d   }|d   d   }|d   d   }d| d	| d
| d| S )zCreates a commit message.

  Args:
    finding_data: Finding data in JSON format.
    member_name: The name of the member to be added to the commit message.

  Returns:
    A string containing the commit message.
  listFindingsResultsr   findingcategoryresourcedisplayNamenamezFixing z of category z for  in jsonloads)finding_datamember_namefinding_resultfinding_categorycrm_nodefinding_names         ?lib/googlecloudsdk/api_lib/scc/iac_remediation/pull_requests.pyCreateCommitMessager      s     L), 56q9.#I. J'6(	*62, 	~]+;*< =

d8*&    c                     t        j                  |       } | d   d   }|d   d   }|d   d   }|d   d   }d| d	| d
| S )zCreates a commit message for a pull request.

  Args:
    finding_data: Finding data in JSON format.

  Returns:
    A string containing the Pull Request(PR) message.
  r   r   r   r	   r
   r   r   zFixing Finding:z of Category:r   r   )r   r   r   r   r   s        r   CreatePRMessager   0   sw     L), 56q9.#I. J'6(	*62, 	~]3C2DXJr   )__doc__
__future__r   r   r   r   r   r    r   r   <module>r      s     : &  ' 0r   