def maybe_add_url_artifact(phab: PhabTalk, phid: str, url: str, name: str):
    if phid is None:
        logging.warning('PHID is not provided, cannot create URL artifact')
        return
    phab.create_artifact(phid, str(uuid.uuid4()), 'uri', {
        'uri': url,
        'ui.external': True,
        'name': name
    })
Beispiel #2
0
def maybe_add_url_artifact(phab: PhabTalk, url: str, name: str):
    phid = os.getenv('ph_target_phid')
    if phid is None:
        return
    phab.create_artifact(phid, str(uuid.uuid4()), 'uri', {
        'uri': url,
        'ui.external': True,
        'name': name
    })