

def _to_trigger(self, deployment):
    trigger = {
        'id': deployment['Id'],
        'name': deployment['Name'],
        'comments': deployment['Comments'],
        'assembled': deployment['Created'],
        'version': deployment['ReleaseId'],
        'author': self['LastModifiedBy'],
        'project_id': deployment['ProjectId'],
    }
    return trigger

dataset/ETHPy150Open StackStorm/st2contrib/packs/octopusdeploy/sensors/new_deployment_sensor.py NewDeploymentSensor._to_trigger/VarMisuse@58/85 `deployment`->`self`